It possible to check if the cursor is hovering on an element.
Something like
$(\"#divId\").is(\"hover\");
NOTE: I just want to check n
Updated answer!
$("#foo").hover(function() { $(this).data("hovered", true); }, function() { $(this).data("hovered", false); });
Testing if it is hovered...
if ( $("#foo").data("hovered") ) { // it is hovered } else { // it's not hovered }