/ Published in: PHP
Toggle section titles
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/*======== General section title toggle script ==*/ function sectiontoggle(){ $('.section-title').nextAll().hide(); if($('nav').find('.active').length){ $('nav li.active').parents('ul').children('li').show(); } $('.section-title').click( function(){ if($(this).nextAll().is(':hidden')){ $(".section-title").not(this).nextAll().slideUp(); $(this).nextAll().slideDown(); } else { $(this).nextAll().slideUp(); } }); }; sectiontoggle();
URL: http://gatonet.de