Team:TU Munich/Templates/Layout

From 2010.igem.org

(Difference between revisions)
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").next().slideToggle("slow");
+
$(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
});
});

Revision as of 13:17, 19 October 2010