I am trying to get a jQuery toggle up and running on my site.
So far my code is:
<script>
$(document).ready(function(){
$(".flip").click(function(){
$(".flippanel").toggle();
});
});
</script>
I then in the HTML have:
<p class="flip">Flip it!</p>
<p class="flippanel">This is a paragraph with little content.</p>
<p class="flippanel">This is another small paragraph.</p>
<p class="flip 2">Flip it!</p>
<p class="flippanel 2 ">This is a paragraph with little content.</p>
<p class="flippanel 2">This is another small paragraph.</p>
How do I go about getting it to toggle the two panels independently? Right now, each panel toggles at the same time.