$(\'.xx\').mouseenter(function(){ if($(this).is(\':hover\')) alert(\'d\'); else alert(\'f\'); });
Here is my code, it should alert \'d
x.filter(':hover').length
This may be also usable when you already had queried some objects / or inside callback function.