jQuery filter() traversing doesnt seems to work ??

Posted by atif089 on Stack Overflow See other posts from Stack Overflow or by atif089
Published on 2010-05-29T17:20:42Z Indexed on 2010/05/29 17:32 UTC
Read the original article Hit count: 186

Filed under:
|
|

I dont know what is the problem with this ?

$('.post').live('mouseenter mouseleave', function() {  
         $(this).filter('anything here,a,div,.class,#id').toggleClass('hidden');
    });

where as this works fine.

$('.post').live('mouseenter mouseleave', function() {  
         $(this).toggleClass('hidden');
    });

There is an anchor which I would like to show on mouse hover. Similar to Facebook

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about filter