[jQuery] Re: DOM traversal -- need both parent node and siblings

2008-06-11 Thread Kevin Major
Great, thanks a bunch! On Jun 11, 3:05 pm, Happy <[EMAIL PROTECTED]> wrote: > No need for the .end() there.  Plus you can use .andSelf() to include > the first td and then run the addClass command just once. > > function() > { >       $(this).parent().siblings().andSelf().addClass("inactive"); >

[jQuery] Re: DOM traversal -- need both parent node and siblings

2008-06-11 Thread Happy
No need for the .end() there. Plus you can use .andSelf() to include the first td and then run the addClass command just once. function() { $(this).parent().siblings().andSelf().addClass("inactive"); } should do it. On Jun 11, 10:26 am, Kevin Major <[EMAIL PROTECTED]> wrote: > Hello ev