How to make jQuery slidetoggle effect for multiple div on same page?
Posted
by metal-gear-solid
on Stack Overflow
See other posts from Stack Overflow
or by metal-gear-solid
Published on 2010-06-15T10:31:30Z
Indexed on
2010/06/15
10:32 UTC
Read the original article
Hit count: 366
(function($) {
$(document).ready(function(){
$('#div1').hide();
$('a#plus').click(function(){
$('#div1').slideToggle();
$(this).toggleClass("minus_icon"); return false;
});
});
})(jQuery);
How to make this slide toogle effect for multiple div on same page? <a id="plus"> is same in all but I have multiple divs with different id to hide like #div1, #div2, div#3.
© Stack Overflow or respective owner