Team:TU Munich/Templates/Layout
From 2010.igem.org
(Difference between revisions)
Hartlmueller (Talk | contribs) |
Hartlmueller (Talk | contribs) |
||
Line 11: | Line 11: | ||
$("p.trigger").click(function(){ | $("p.trigger").click(function(){ | ||
$(this).toggleClass("activeToggle"); | $(this).toggleClass("activeToggle"); | ||
- | + | var elems = $(this).siblings(".toggle_container"); | |
- | + | elems.first().slideToggle("slow"); | |
+ | |||
return false; //Prevent the browser jump to the link anchor | return false; //Prevent the browser jump to the link anchor | ||
}); | }); |