Skip to content
Related Articles

Related Articles

jQuery UI Datepicker duration Option

Improve Article
Save Article
  • Last Updated : 08 Mar, 2021
Improve Article
Save Article

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. jQueryUI Datepickers widget in jQueryUI allows users to enter dates easily and visually. In this article we will see how to use duration option in jQuery UI Datepicker. The duration option is used to set the duration of opening of the jQuery UI datepicker.


   {duration :"slow"}

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

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

Example 1:


<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8" />
    <script src=
    <script src=
      $(function () {
        $("#gfg").datepicker({ dateFormat: "yy/DD/dd/mm", duration: "slow" });
  <h3>jQuery UI | datepicker duration option</h3>
    <p>Enter Date: <input type="text" id="gfg" /></p>



My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!