[jQuery] Re: $(this).next() doesn't work

2008-11-07 Thread diego valobra
Rik, tnx you gave me the right inputi'm solving it Diego 2008/11/7 Rik Lomas <[EMAIL PROTECTED]> > > You need to do: > > $(this).parent().next().addClass('second'); > > As the element the click is attached to is the , so you need to > traverse up the DOM tree first > > Rik > > > 2008/11/7 di

[jQuery] Re: $(this).next() doesn't work

2008-11-07 Thread Rik Lomas
You need to do: $(this).parent().next().addClass('second'); As the element the click is attached to is the , so you need to traverse up the DOM tree first Rik 2008/11/7 diego <[EMAIL PROTECTED]>: > > Hi all. how can i addClass from the clicked element to the > next ? > i've tried this > > $