Snippets

jQuery 5 row accordion

An easy, multi-level jQuery accordion :)

$("#accordion .expanded").hide();
$("a.opening").click(function(){
	$(this).next().slideToggle('fast', function(){
		$(this).prev("a.opening").toggleClass("active");
		});
	return false;
});

Source: http://www.gleenk.com/demo/jquery/accordion/...

Share this snippet