Menu widget in jQuery UI creates a menu that contains items and sub-items in a sub-menu related to a particular item on the menu. Menu items are created using mark-up elements using a parent-child like relation which can be created using lists and nested lists. Each menu item generally corresponds to a specific page and hence each of these elements is between an anchored tag.
Syntax:
$(selector, context).menu(options)
You can provide one or more options at a time using a JavaScript object.
If there is more than one choice to be provided then you may separate them using a comma as follows
$(selector, context).menu ("action", params)
For navigation, we can create a menu by using jQuery UI. We can create a main menu and sub-menu by using the menu. We will create one list and sub-list in HTML and that will be used to create the menu using jQuery UI.
Similar Reads
jQuery UI Selectmenu In this article, we are going to build a select menu using jQuery UI selectmenu widgets that can provide us select options. We can use this widget to make a form for different actions. Syntax: $( ".selector" ).selectmenu(); Parameter: It does not accept any parameter. Return value: It returns a sele
1 min read
jQuery UI Menu blur Event jQuery UI consists of GUI widgets, visual effects, and themes implemented using HTML, CSS, and jQuery. It is great for building UI interfaces for the webpages. The jQuery UI Menu widget creates a menu list that is used for mouse and keyboard interactions. The jQuery UI Menu blur event triggers when
2 min read
jQuery UI Menu next() Method jQuery UI consists of GUI widgets, visual effects, and themes implemented using HTML, CSS, and jQuery. jQuery UI is great for building UI interfaces for the webpages. The jQuery UI Menu widget creates a menu list that is used for mouse and keyboard interactions. The jQuery UI Menu next() method is u
2 min read
jQuery UI Menu focus Event jQuery UI consists of GUI widgets, visual effects, and themes implemented using HTML, CSS, and jQuery. It is great for building UI interfaces for the webpages. The jQuery UI Menu widget creates a menu list that is used for mouse and keyboard interactions. The jQuery UI Menu focus event triggers when
2 min read
jQuery UI Menu create Event jQuery UI consists of GUI widgets, visual effects, and themes implemented using HTML, CSS, and jQuery. It is great for building UI interfaces for the webpages. The jQuery UI Menu widget creates a menu list that is used for mouse and keyboard interactions. The jQuery UI Menu creates event triggers wh
2 min read