jQuery UI Datepicker isDisabled() Method Last Updated : 23 Dec, 2021 Comments Improve Suggest changes Like Article Like Report 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 isDisabled() method to check whether a date picker has been disabled or not. This method does not accept any parameter. Syntax: var isDisabled = $(".selector").datepicker("isDisabled"); 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: This example demonstrates the jQuery UI Datepicker isDisabled() method. 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> <!-- jQuery code --> <script> $(function () { $("#dateID").datepicker(); $("#dateID").datepicker("disable"); $("#btn").on('click', function () { var isDisabled = $("#dateID").datepicker("isDisabled"); alert("Value of isDisabled() Method: " + isDisabled); }); }); </script> </head> <body> <center> <h1 style="color:green;"> GeeksforGeeks </h1> <h3>jQuery UI Datepicker isDisabled() Method</h3> <p>Enter Date: <input type="text" id="dateID"></p> <input type="button" id="btn" style="padding: 5px 15px;" value="Check for Disabled Widget"> </center> </body> </html> Output: Reference: https://api.jqueryui.com/datepicker/#method-isdisabled Comment More infoAdvertise with us Next Article jQuery UI Datepicker isDisabled() Method P ppatelkap Follow Improve Article Tags : Web Technologies JQuery jQuery-UI jQuery-UI-Datepicker Similar Reads 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 hide() 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 h 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 How to Disable an datepicker in jQuery UI ? 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 1 min read jQuery UI Datepicker show() 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 s 1 min read Like