Skip to content
Related Articles
Open in App
Not now

Related Articles

jQuery UI Datepicker hide() Method

Improve Article
Save Article
  • Last Updated : 20 Dec, 2021
Improve Article
Save Article

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.



Approach: First, add jQuery UI scripts needed for your project.

<link href = “” rel = “stylesheet”>
<script src = “”></script>
<script src = “”></script>

Example: This example demonstrates the Query UI Datepicker hide() method.


<!doctype html>
<html lang="en">
    <meta charset="utf-8">
    <link href=
    <script src=
    <script src=
    <!-- jQuery code -->
        $(function () {
            $("#dateID").datepicker("dialog", "10/12/2012");
            $("#btn").on('click', function () {
        <h1 style="color:green;">
        <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>



My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!