Skip to content
Related Articles
Open in App
Not now

Related Articles

How to Disable an datepicker in jQuery UI ?

Improve Article
Save Article
  • Last Updated : 27 Jan, 2021
Improve Article
Save Article

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.


$( ".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 = "" rel = "stylesheet"> <script src = ""></script> <script src = ""></script>



<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8" />
    <link href=
        rel="stylesheet" />
    <script src=""></script>
        $(function() {
    <p>Enter Date: <input type="text" id="gfg" /></p>


My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!