refresh value of mouseover
Hi everybody,
There is my problem : I have a table with a lot of cells. I would like to get the value of "title" tag of the td when the mouse pass over the cell. I managed to get the value of the first cell but when I go in another cell, the value doesn't refresh... Have a look at my code :
- var case_over;
$(function(){
$('#plateau_jeu').mouseover(function(){
case_over=$('td').attr("title");
console.log('cell is called '+case_over);
});
- });
Thanks for your help !