[jQuery] Setting/removing CSS classes

2008-06-12 Thread Kevin Major
This is related to my past DOM traversal question from a day ago. Long story short, I have a series of checkbox inputs within table cells. Upon a click event, the input, its containing cell, and the containing cell's next sibling should change CSS classes. According to Firebug, the class names a

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

2008-06-11 Thread Kevin Major
elf().addClass("inactive"); > > } > > should do it. > > On Jun 11, 10:26 am, Kevin Major <[EMAIL PROTECTED]> wrote: > > > > > Hello everyone, > > > I'm currently in a bit of a bind.  I have a checkbox that's within a > > table cell

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

2008-06-11 Thread Kevin Major
Hello everyone, I'm currently in a bit of a bind. I have a checkbox that's within a table cell. I want it so when the input is clicked, the parent table cell AND its siblings change their classes. I can get to the parent element, but how would I attach this functionality to its siblings? Righ