How to destroy a datepicker in jQuery UI ? Last Updated : 12 Jan, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report To destroy a datepicker in jQuery UI, we will be using destroy() method. jQuery UI destroy() method is used to remove the complete functionality of the datepicker(). Syntax: $(".selector" ).datepicker( "destroy" ) Parameters: This method does not accept any parameters. Return values: This method simply returns the datepicker to its pre-initial state. Approach: First, add jQuery mobile scripts needed for your project. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js"></script> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/ui-lightness/jquery-ui.css" rel="stylesheet" type="text/css" /> Example: HTML <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content= "width=device-width, initial-scale=1"> <script src= "https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"> </script> <script src= "https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js"> </script> <link href= "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/ui-lightness/jquery-ui.css" rel="stylesheet" type="text/css" /> <script> $(function () { $("#datepicker").datepicker(); $("#datepicker").datepicker("destroy"); }); </script> </head> <body> <p>Date: <input type="text" id="datepicker"></p> </body> </html> Output: Comment More infoAdvertise with us Next Article jQuery UI Datepicker destroy() Method T taran910 Follow Improve Article Tags : Web Technologies JQuery jQuery-UI jQuery-Questions Similar Reads How to Disable an datepicker in jQuery UI ? To disable a datepicker in jQuery UI we will be using disable() method which is discussed below: jQuery UI disable() method is used to disable the datepicker. Syntax: $( ".selector" ).datepicker( "disable" )Parameters: This method does not accept any parameters. Return values: This method returns an 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 How to destroy a button in jQuery UI ? To destroy a button in jQuery UI we will be using destroy() method which is discussed below: jQuery UI destroy() Method is used to remove the complete functionality of the button. It returns the button element completely to its initial state. Syntax: $(".selector").button("destroy") Parameters: This 2 min read How to Change Date Format in jQuery UI DatePicker ? In this article, we are going to learn about the Datepicker in jQuery. jQuery is the fastest and lightweight JavaScript library that is used to simplify the interactions between an HTML/CSS document, or more precisely the Document Object Model (DOM), and JavaScript. jQuery is widely famous for its m 2 min read jQuery UI Datepicker dayNamesMin 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 users to enter dates easily and visually. In this article, we will see how to use dayNamesMin op 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 Like