Return to Snippet

Revision: 24336
at February 26, 2010 14:38 by matthalliday


Updated Code
$('#container ul li a').click(function() {		
	if ( $(this).parent().children('ul').size() > 0  ) {
		$(this).parent().children('ul:first').toggle();
		$(this).parent().siblings().find('ul:visible').hide();
	}	
});

Revision: 24335
at February 26, 2010 14:37 by matthalliday


Initial Code
$('#left_sidebar ul li a').click(function() {		
	if ( $(this).parent().children('ul').size() > 0  ) {
		$(this).parent().children('ul:first').toggle();
		$(this).parent().siblings().find('ul:visible').hide();
	}	
});

Initial URL


Initial Description
A lightweight, collapsable menu script that works no matter how many nested lists there are.

Initial Title
Collapsable Navigation Menu with Unlimited Levels

Initial Tags
jquery

Initial Language
jQuery