The datepicker is tied to a standard form input field. Focus on the input (click, or use the tab key) to open an interactive calendar in a small overlay. Choose a date, click elsewhere on the page (blur the input), or hit the Esc key to close. If a date is chosen, feedback is shown as the input's value.
To integrate the jquery datepicker we need the three files those are
1.jquery-ui.css
2.jquery.min.js
3.jquery-ui.min.js
You can download these files form here
Jquery ui files can be download here
Jquery-min.js file can be download here
Other wise you can simply use these CDNS
Download Watch Demo
To integrate the jquery datepicker we need the three files those are
1.jquery-ui.css
2.jquery.min.js
3.jquery-ui.min.js
You can download these files form here
Jquery ui files can be download here
Jquery-min.js file can be download here
Other wise you can simply use these CDNS
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
Datepicker code
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Datepicker</title> <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script> </head> <body> <input type='text' id='txtDate' /> <script> $(document).ready(function () { $('#txtDate').datepicker(); }); </script> </body> </html>
Download Watch Demo
* If you like this post please don’t forget to subscribe Techies Badi - programming blog for more useful stuff
EmoticonEmoticon