I have the following snippet, but it doesn’t work. Probably the live() handler is misplaced:
$('.link').next().hide().prev().live('click' ,function () {
$(this).next('.desc_hidden').slideToggle(100);
});
Thanks.
To understand this was the original, but as you can see it toggles every element, not just the next:
$('.link').live('click' , function(){
$('.desc_hidden').slideToggle('100');
});
Update, the working code is here link.
Thanks for everyone.
Assuming that starting from the second code snippet, you just want to have each
.linkto show the div next to it, you can use the following:(this migth need some tweaks depending of your dom implementation).