I looked around for this but couldn't find an answer. I have a set of
kids and I'd like to have a hover() defined where the hover element
doesn't change but all the siblings--$(this).parent().children()--have
an effect applied; in this case opacity animation.

So this is what I'm playing with but I don't know the idiom to filter
out the "this" and just leave it alone. grep()? I know there must be a
simple idiom for this. If I write it myself I'm going to wind up with
a big stupid function. Any ideas to do it succinctly?

  $("#tabs div")
     .hover(function(){ $(this).parent().children().animate({opacity:
0.3}, "fast")}
           ,function(){ $(this).parent().children().animate({opacity:
1}, "fast") });


Thank you!
-Ashley

Reply via email to