
- jQuery Tutorial
- jQuery - Home
- jQuery - Overview
- jQuery - Basics
- jQuery - Syntax
- jQuery - Selectors
- jQuery - Events
- jQuery - Attributes
- jQuery - AJAX
- jQuery DOM Manipulation
- jQuery - DOM
- jQuery - Add Elements
- jQuery - Remove Elements
- jQuery - Replace Elements
- jQuery CSS Manipulation
- jQuery - CSS Classes
- jQuery - Dimensions
- jQuery - CSS Properties
- jQuery Traversing
- jQuery - Traversing
- jQuery - Traversing Ancestors
- jQuery - Traversing Descendants
- jQuery References
- jQuery - Utilities
- jQuery Plugins
- jQuery - Plugins
- jQuery - PagePiling.js
- jQuery - Flickerplate.js
- jQuery - Multiscroll.js
- jQuery - Slidebar.js
- jQuery - Rowgrid.js
- jQuery - Alertify.js
- jQuery - Progressbar.js
- jQuery - Slideshow.js
- jQuery - Drawsvg.js
- jQuery - Tagsort.js
- jQuery - LogosDistort.js
- jQuery - Filer.js
- jQuery - Whatsnearby.js
- jQuery - Checkout.js
- jQuery - Blockrain.js
- jQuery - Producttour.js
- jQuery - Megadropdown.js
- jQuery - Weather.js
- jQuery Useful Resources
- jQuery - Questions and Answers
- jQuery - Quick Guide
- jQuery - Useful Resources
- jQuery - Discussion
jQuery - Widget Menu
Description
The Widget Menu function can be used with widgets in JqueryUI. A simple menu shows list of items.A list is transformed, adding theming, mouse and keyboard navigation support.
Syntax
Here is the simple syntax to use menu −
$( "#menu" ).menu();
Example
Following is a simple example showing the usage of menu −
<!doctype html> <html lang = "en"> <head> <meta charset = "utf-8"> <title>jQuery UI Menu - Default functionality</title> <link rel = "stylesheet" href = "//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <script type = "text/javascript" src = "https://www.tutorialspoint.com/jquery/jquery-3.6.0.js"> </script> <script type = "text/javascript" src = "https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/jquery-ui.min.js"> </script> <script> $(function() { $( "#menu" ).menu(); }); </script> <style> .ui-menu { width: 150px; } </style> </head> <body> <ul id = "menu"> <li class = "ui-state-disabled">Team</li> <li>Gopal K verma</li> <li>Omer</li> <li>Khaleel</li> <li>Prasanth <ul> <li class = "ui-state-disabled">Krishna</li> <li>Raju</li> <li>Sairamkrishna </li> </ul> </li> <li>Vineeth</li> <li>Rajeev <ul> <li>Lakshmi <ul> <li>Kiran</li> <li>Sai</li> <li>Javeed</li> </ul> </li> <li>Raju <ul> <li>Arshad</li> <li>Johar</li> <li>Althamas</li> </ul> </li> <li>Gopal</li> </ul> </li> <li class = "ui-state-disabled">Santosh</li> </ul> </body> </html>
This will produce following result −
jquery-widgets.htm
Advertisements