I have several sections as shown below. I want 1 (one) jQuery function that disables ahref (.hide), hide data inside <div class="data"> .
1. This should be 1 function that can hide multiple divs
2. The explanation would be great when using the jquery this selector, I suspect this is what I need.
3. Keep it simple!
4. Also a good slide switch effect will be great to slide up and down on click.
I tried to do this, but I had to make a different jquery code for each div, which is ... long ..
Thanks for any help !! and hopefully the correct answers!
<div id="uniqueDiv1" class="frame"> <a href="#" class="hide">Hide</a> // On click of this Div <div class="data"> <pre>data</pre> // Hide This Div or Data </pre> </div> <div id="uniqueDiv2" class="frame"> <a href="#" class="hide">Hide</a> // On click of this Div <div class="data"> <pre>data</pre> // Hide This Div or Data </pre> </div> <remember> I want 1 simple Jquery DOM function for all Multiple Divs </remember>
anon
source share