How to Disable an datepicker in jQuery UI ? Last Updated : 27 Jan, 2021 Comments Improve Suggest changes Like Article Like Report To disable a datepicker in jQuery UI we will be using disable() method which is discussed below: jQuery UI disable() method is used to disable the datepicker. Syntax: $( ".selector" ).datepicker( "disable" )Parameters: This method does not accept any parameters. Return values: This method returns an object value 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: 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> <script> $(function() { $("#gfg").datepicker(); $("#gfg").datepicker("disable"); }); </script> </head> <body> <p>Enter Date: <input type="text" id="gfg" /></p> </body> </html> Output: Comment More infoAdvertise with us Next Article How to Disable an datepicker in jQuery UI ? taran910 Follow Improve Article Tags : Web Technologies HTML JQuery jQuery-UI Similar Reads How to destroy a datepicker in jQuery UI ? To destroy a datepicker in jQuery UI, we will be using destroy() method. jQuery UI destroy() method is used to remove the complete functionality of the datepicker(). Syntax: $(".selector" ).datepicker( "destroy" ) Parameters: This method does not accept any parameters. Return values: This method sim 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 Datepicker isDisabled() 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. jQuery UI Datepickers widget allows users to enter dates easily and visually. In this article, we will use the jQuery UI Datepicker i 1 min read How to Change Date Format in jQuery UI DatePicker ? In this article, we are going to learn about the Datepicker in jQuery. jQuery is the fastest and lightweight JavaScript library that is used to simplify the interactions between an HTML/CSS document, or more precisely the Document Object Model (DOM), and JavaScript. jQuery is widely famous for its m 2 min read jQuery UI Datepicker dialog() 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. jQueryUI Datepickers widget allows users to enter dates easily and visually. In this article, we will use jQuery UI Datepicker dialog 2 min read jQuery UI Datepicker isRTL Option 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. The jQuery UI Datepicker isRTL option is used to check whether the current language is drawn from right to left or not. Syntax: $( ". 1 min read jQuery UI Datepicker dayNamesMin Option The 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. The jQuery UI Datepickers widget users to enter dates easily and visually. In this article, we will see how to use dayNamesMin op 1 min read How to create UI Datepicker using jQuery? To implement a jQuery UI Datepicker with localization, configure it to display dates in various languages based on either browser settings or application-specific preferences. Syntax:let userLang = navigator.language || navigator.userLanguage; let options = $.extend({}, // empty object $.datepicker. 2 min read 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 Datepicker destroy() 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. jQueryUI Datepickers widget allow users to enter dates easily and visually. In this article, we will use jQuery UI Datepicker destroy( 1 min read Like