Return to Snippet

Revision: 56763
at April 15, 2012 00:56 by G470


Initial Code
/*======== 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();

Initial URL
http://gatonet.de

Initial Description
Toggle section titles

Initial Title
Indexhibit accordion menu v2

Initial Tags
plugin

Initial Language
PHP