I would like to figure out how to loop a .click function with the slideToggle. Here's the code for the single event:
$("#slide1").click(function () {
$("#panel1").slideToggle(1000);
});
slide1 is the div the person would click on toggling the panel to slide down or up. I've tried a for loop and etc to figure out how to loop this for multiple slide's and panels.
Say I have 10 slides is it possible to create one loop for all 10 or does it have to be done individually?