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
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 ??
2 matches
Mail list logo