jQuery .toggle() to show and hide a sub sub-menu
问题 I'm using this question's code to make a show/hide toggle jQuery .toggle() to show and hide a sub-menu $('#menu-lateral .sub-menu').hide(); //Hide children by default $('#menu-lateral > li > a').click(function() { event.preventDefault(); $(this).siblings('.sub-menu').slideToggle('slow'); }); The problem is that my sub-menu has its own sub-menu with many items. Is there a way to adapt this code to work ALSO in the next level? Important info: wordpress makes by default the child UL with the