advertisement
jQuery datepicker is a part of jQuery UI. So to be able to use it, you need to link to jQuery.js, jQuery-UI.js and also jQuery.css theme. To learn more about it, you might be want to read the previous article about How to Make jQuery Popup Window? That posts explain how to link jQuery to your page.
jQuery Datepicker, Easiest Way to Input Date
The picture above show the jQuery datepicker example. When we click at the input are, a calendar will popup. And if we click on a date, it will automatically change the value of the input area according to the date that we click. Here the example:
Date:
Here is the above jQuery datepicker source code:<script>
$(document).ready(function () {
$("#date").datepicker();
});
</script>
Here is the html code:
Date: <input id="date" />
$(document).ready(function () {
$("#date").datepicker();
});
</script>
Here is the html code:
Date: <input id="date" />
Go to this link to practice http://jsfiddle.net/AtM9E/. Simple code that really help you, isn't it? That's all about jQuery Datepicker, Easiest Way to Input Date. The next posts we will learn How to customize jQuery datepicker format. Thank you for reading, use the comment form below if you need some help. See you!!!
Categories:
Post a Comment/Report Broken Link: