Team:TU Munich/Templates/Layout
From 2010.igem.org
(Difference between revisions)
Hartlmueller (Talk | contribs) |
Hartlmueller (Talk | contribs) |
||
Line 9: | Line 9: | ||
$(".toggle_container").hide(); | $(".toggle_container").hide(); | ||
//Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state) | //Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state) | ||
- | $(" | + | $("p.trigger").click(function(){ |
$(this).toggleClass("active").next().slideToggle("slow"); | $(this).toggleClass("active").next().slideToggle("slow"); | ||
return false; //Prevent the browser jump to the link anchor | return false; //Prevent the browser jump to the link anchor |