The Functions API provides functions which allow you to perform actions on the menu.

In the examples below .ubermenu will target all UberMenus on the page. If you only have one UberMenu, this is just fine, but if you halve multiple UberMenus you’ll want to use a more specific selector.

Open a submenu

Pass the function the jQuery object of the menu item whose submenu you would like to open. Here we’ve selected it via its ID. Note that this is the LI (menu item) as opposed to the anchor (target). You can use any method to select that LI object, it does not have to be by ID.

Close a specific submenu

Pass the function the jQuery object of the menu item whose submenu you would like to close. Here we’ve selected it via its ID. Note that this is the LI (menu item) as opposed to the anchor (target). You can use any method to select that LI object, it does not have to be by ID.