Jquery Only Toggle One Element Without Having To Use Ids
i have multiple divs with the same class on my page. I want to be able to toggle them individually. Using this script: $(document).ready(function() { $('.file').hide(); $('
Solution 1:
Maybe you could try with this:
$(this).parent('h5').next('div.file').slideToggle(1000);
Edit: Here's an example: http://jsfiddle.net/6GRJr/
Post a Comment for "Jquery Only Toggle One Element Without Having To Use Ids"