jquery hide/show element
-
Hi,
I am using a bit of jquery to show and hide content if title h2 is clicked.
The problme is as there are many title h2 (within a loop) when i click on only title h2 it shows the content of all the h2 content.
my code isjQuery('a#slick-slidetoggle').click(function() { jQuery('#toggle-search').slideToggle(400); return false; }); });
I would appreciate any help as i don t know how to fix it.
Cannot give an unique id to the tile h2 because of belomging to the loop i ll get class..One idea?
Even if not with jquery ,i ll take it:)
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘jquery hide/show element’ is closed to new replies.