/ Published in: jQuery

URL: http://luiszuno.com/themes/watercolor/spring/about.html
Toggle visibility box
Expand |
Embed | Plain Text
// toggle $(".toggle-container").hide(); $("h2.toggle-trigger").click(function(){ $(this).toggleClass("active").next().slideToggle("slow"); return false; }); // usage <h2 class="toggle-trigger custom2"><a href="#">Toggle Switch</a></h2> <div class="toggle-container"> <div class="block"> <p>Pellentesque habitant morbc dui. </p> </div> </div>
You need to login to post a comment.