How to "Show & Hide Content with Toggle Button" for multiple divs?
<p>I am trying to create toggle button for multiple divs. I found one good tutorial, sharing the code below:</p>

<pre><code>&lt;script type="text/javascript"&gt;
$(document).ready(function(){   
$('.example2').hide().before('&lt;a href="#" id="toggle-example2" class="button"&gt;Open/Close&lt;/a&gt;');
    $('a#toggle-example2').click(function() {
        $('.example2').slideToggle(1000);
        return false;
    });
});
&lt;/script&gt;
</code></pre>

<p>How do i change the code for multiple div classes, like .example2, .example3, ....</p>

<p>Here is the tutorial: <a href="http://rpardz.com/blog/show-hide-content-jquery-tutorial/" rel="nofollow">http://rpardz.com/blog/show-hide-content-jquery-tutorial/</a></p>
