Saturday, September 29, 2012
Datepicker using JQuery
This is one way that I used recently to create a datepicker in javascript. Once you do this once, it is trivial the second time through. I am hoping that this post will same someone else some time.
Enjoy - Steve
// On your page, add a reference to the JQuery UI
// Put in a “document.ready” method (called after page is loaded). This function will take all controls of class ‘datepicker’ and will run the datepicker () method on it. In this case, we have opted to have the picker allow changing the month and the year.
// Now just enter an input control of class ‘datepicker’ wherever you want it and you are done.
or
Subscribe to:
Posts (Atom)