Team:TU Munich/Templates/Layout

From 2010.igem.org

(Difference between revisions)
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)
-
$("h2.trigger").click(function(){
+
$("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

Revision as of 17:12, 8 October 2010