How to enable a jQuery UI menu ? Last Updated : 20 Jan, 2021 Comments Improve Suggest changes Like Article Like Report jQuery UI consists of GUI widgets, visual effects, and themes implemented using jQuery, CSS, and HTML. jQuery UI is great for building UI interfaces for the webpages. jQuery UI menu is a Themeable menu that is used with mouse and keyboard interactions for navigating between pages. In this article, we will show how to enable a menu in jQuery UI. Syntax: $(".selector").menu( "enable" );Approach: First, add jQuery UI scripts needed for your project. <link href = "https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" rel = "stylesheet"> <script src = "https://code.jquery.com/jquery-1.10.2.js"></script> <script src = "https://code.jquery.com/ui/1.10.4/jquery-ui.js"></script> Example 1: In this example, we will be creating and enabling the menu for our purposes. HTML <!doctype html> <html lang = "en"> <head> <meta charset = "utf-8"> <link href = "https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" rel = "stylesheet"> <script src = "https://code.jquery.com/jquery-1.10.2.js"></script> <script src = "https://code.jquery.com/ui/1.10.4/jquery-ui.js"> </script> <style> .ui-menu { width: 200px; } </style> <script> $(function() { $( "#gfg" ).menu(); $( "#gfg" ).menu("enable"); }); </script> </head> <body> <h1>jQuery UI | enable menu </h1> <ul id = "gfg"> <li><a href = "https://www.geeksforgeeks.org/">1st</a></li> <li><a href = "https://www.geeksforgeeks.org/">2nd</a></li> <li><a href = "https://www.geeksforgeeks.org/">3rd</a></li> <li><a href = "https://www.geeksforgeeks.org/">2th</a></li> <li><a href = "https://www.geeksforgeeks.org/">5th</a></li> </ul> </body> </html> Output: Comment More infoAdvertise with us Next Article How to enable a jQuery UI menu ? T taran910 Follow Improve Article Tags : Web Technologies HTML JQuery jQuery-UI Similar Reads How to disable a jQuery UI menu? In this article we will disable a jQuery UI menu Syntax: $(".selector").menu( "disable" );Learn more about selectors and menu options in jQuery. Approach: First, add jQuery UI scripts needed for your project. <link href = "https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" rel = 1 min read jQuery UI Menu enable() 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 enable() method is 2 min read jQuery UI Menu disable() 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 disable() method i 2 min read jQuery UI Menu disabled Option 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 disabled option is used to disable the menu items if it set to true. Syntax: $( ".selector" ).menu({ disabled: tru 1 min read jQuery UI Button enable() 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 Button enable() method is used to enable the disabled button element. It does not accept any parameter. Syntax: $(".sel 1 min read Like