jQuery UI Datepicker dialog() Method Last Updated : 13 Jun, 2022 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. jQueryUI Datepickers widget allows users to enter dates easily and visually. In this article, we will use jQuery UI Datepicker dialog() method to open the datepicker in a dialog box. Syntax: dialog( date [, onSelect ] [, options ] [, pos ] ) Parameters: date: It accepts the initial date. It accepts String or Date type values.onSelect: It is a callback function when a date is selected. The function accepts the date text and date picker instance as parameters. It accepts Function() type value.options: It is the new option for the date picker. It accepts option type values.pos: It accepts the position of the top/left of the dialog as [x, y]. CDN Link: 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 describes the uses of the jQuery UI Datepicker dialog() 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 () { $("#GFG").datepicker(); $("#btn").on('click', function () { $("#GFG").datepicker("dialog", "10/12/2012"); }); }); </script> </head> <body> <center> <h1 style="color: green;"> GeeksforGeeks </h1> <h3>jQuery UI Datepicker dialog() Method</h3> <p>Enter Date: <input type="text" id="GFG"></p> <input type="button" id="btn" style="padding: 5px 15px;" value="Create a Dialog"> </center> </body> </html> Output: Reference: https://api.jqueryui.com/datepicker/#method-dialog Comment More infoAdvertise with us Next Article jQuery UI Datepicker dialog() Method P ppatelkap Follow Improve Article Tags : Web Technologies JQuery jQuery-UI jQuery-UI-Button Similar Reads 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 hide() 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 h 1 min read 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 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 Like