$('.xx').mouseenter(function(){ if($(this).is(':hover')) alert('d'); else alert('f'); });
Here is my code, it should alert 'd' but every time it alerts 'f' What's error Here
function idIsHovered(id){ return $("#" + id + ":hover").length > 0; }
http://jsfiddle.net/mathheadinclouds/V342R/
1.4m articles
1.4m replys
5 comments
57.0k users