Thursday, 19 September 2013

jQuery .hover() in content

jQuery .hover() in content

i have tried to display the value in title on hover, i faced the problem
when i try to hover on a anchor tag in title it displayed some thing like
this <a href="http://blabla.com/1">one</a> so that i have used the
following code to overcome this..
$('.table1 td, .table2 td').find("a, div, label")
.hover(function() {
$(this).prop('title', $(this).html());
});
Now, what i need means, when i hover other than a, div, label am not able
to get any content of td in hover, i need help.. anyone??

No comments:

Post a Comment