/ Published in: JavaScript

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Slide divs //Hide (Collapse) the toggle containers on load $(".toggle_container").hide(); //Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state) $("span.trigger").click(function(){ $(this).toggleClass("active").next().slideToggle("slow"); });
Comments
