Multi level accordion
$(document).ready(function(){ $('#accordion > li ul') .click(function(event){ event.stopPropagation(); }) .filter(' :not(:first)') .hide(); $('#accordion > li,#accordion > li > ul > li').click(function(){ var selfClick=$(this).find('url:first').is('visible'); if(!selfClick){ $(this) .parent() .find('> li ul:visible') .slideToggle(); }…