Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App

Related Articles

jQuery UI Datepicker refresh() Method

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like 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 refresh() method to redraw the date picker, after making some external modifications. This method does not accept any parameter.



CDN Links: 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 refresh() method.


<!doctype html>
<html lang="en">
    <meta charset="utf-8">
    <link href=
    <!-- jQuery code -->
        $(function () {
            $("#btn").on('click', function () {
                alert("Widget Refreshed!");
        <h1 style="color: green;">
        <h3>jQuery UI Datepicker refresh() Method</h3>
        <p>Enter Date: <input type="text" id="GFG"></p>
        <input type="button" id="btn" style="padding: 5px 15px;" 
               value="Refresh the Widget">



My Personal Notes arrow_drop_up
Last Updated : 21 Dec, 2021
Like Article
Save Article
Similar Reads
Related Tutorials