navgoco
navgoco copied to clipboard
Howto open subtree and link with one click
I want to open the submenu AND the link in submenus parent(mainmenuitem1) at the same time with ONE click on the line containing the main menu item. How can I do that with navgoco?
mainmenuitem 1 submenuitem 1 submenuitem 2
I have the same question. When a user clicks a link to a page, the menu should automatically add an open class to all parent items. I'm adding this script below my sidebar:
<script>$("li.open").parents('li').toggleClass("open");</script>
It works but the result is a flicker when the page loads. First the menu opens all the way, and then the class gets applied and the menu opens properly. I want the class loaded before the menu displays. How do I do that?