Team:TU Munich/Templates/Layout
From 2010.igem.org
(Difference between revisions)
Hartlmueller (Talk | contribs) |
Hartlmueller (Talk | contribs) |
||
Line 10: | Line 10: | ||
//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(){ | $("p.trigger").click(function(){ | ||
- | $(this).toggleClass("active") | + | $(this).toggleClass("active"); |
+ | $(".toggle_container").slideToggle("slow"); | ||
return false; //Prevent the browser jump to the link anchor | return false; //Prevent the browser jump to the link anchor | ||
}); | }); |