How to make jQuery slidetoggle effect for multiple div on same page?
- by metal-gear-solid
(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.