jQuery UI Datepicker hide() Method Last Updated : 20 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 hide() method to close the previously opened date picker widget. This method does not accept any parameter. Syntax: $(".selector").datepicker("hide"); 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 Query UI Datepicker hide() 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("dialog", "10/12/2012"); $("#btn").on('click', function () { $("#dateID").datepicker("hide"); }); }); </script> </head> <body> <center> <h1 style="color:green;"> GeeksforGeeks </h1> <h3>jQuery UI Datepicker hide() Method</h3> <input type="button" id="btn" style="padding:5px 15px;" value="Hide the Widget"> <p>Enter Date: <input type="text" id="dateID"></p> </center> </body> </html> Output: Reference: https://api.jqueryui.com/datepicker/#method-hide Comment More infoAdvertise with us Next Article jQuery UI Datepicker hide() Method P ppatelkap Follow Improve Article Tags : Web Technologies JQuery jQuery-UI jQuery-UI-Datepicker Similar Reads 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 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 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 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 jQuery UI Datepicker widget() 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 Datepicker widget allows users to enter dates easily and visually. In this article, we will use the jQuery UI Datepicker wi 1 min read jQuery UI datepicker option() Method jQuery UI datepicker option(optionName, value) method is used to set the value of the button option associated with the specified optionName. Syntax: $( ".selector" ).datepicker( "option", "disabled", true )Parameters: optionName: Option to be checked.value: Value to be checkedReturn values: This me 1 min read jQuery UI Datepicker setDate() Method jQuery UI datepicker setDate() method is used to set the date from the date field. The setDate method can be called by passing the default date you want to set. You can pass today as an argument to set the date with the current date. Syntax:$( ".selector" ).datepicker( "setDate" )Parameters:It accep 1 min read jQuery UI Datepicker refresh() 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 r 1 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 dayNames 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 allow users to enter dates easily and visually. In this article, we will see how to use dayNames 1 min read Like