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

2008-11-07 Thread diego valobra
I forgot to say that i need to use $('.first li a').bind('click',function() 'couse with theĀ  var pathImg = $(this).attr('href'); i get the href of the clicked element. Diego --- Ven 7/11/08, diego <[EMAIL PROTECTED]> ha scritto: Da: diego <[EMAI

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

2008-11-07 Thread diego
Hi all. how can i addClass from the clicked element to the next ? i've tried this $('.first li a').bind('click',function() $(this).next('li').addClass('second'); }); but won't work, the original code : and clicking on the first $('li a') the output code should be : any idea ??