How to disable a jQuery UI menu? Last Updated : 22 Feb, 2023 Comments Improve Suggest changes Like Article Like Report 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 = "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: 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("disable"); }); </script> </head> <body> <h1>jQuery UI | disable 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/">2nd</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 disable a jQuery UI menu? T taran910 Follow Improve Article Tags : Web Technologies HTML JQuery jQuery-UI Similar Reads How to enable a jQuery UI menu ? 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, w 1 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 How to Disable a Button in jQuery UI ? To disable a button in jQuery UI, we will be using disable() method which is discussed below: jQuery UI disable() method is used to completely disable the button. It returns the button element completely to its initial state. Syntax: $(".selector").button("disable") Parameters: This method does not 2 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 Like