datePicker: Picking a Calendar Date
Filling in a date in a form can go wrong in many different ways: Days and months, dashes and slashes get switched around according to local conventions. Sometimes it all goes in one box. Sometimes it's split up.
A little popup calendar like the one demonstrated here makes things a lot easier and it doesn't interfere with the normal way of using the text-boxes.
The markup for the calendar pop-up is kept in an external xml file to keep the code from getting cluttered with many instances of the calendar markup.
Required Files
-
jQuery Addon Script: jquery.classbehaviours.datepicker.js
- Prerequisite Script: jquery.classbehaviours.togglenextnode.js
- Optional Script: jquery.classbehaviours.inputformat.js
- Prerequisite Script: jquery.classbehaviours.js
- Example Markup: datePicker.html
- Example Stylesheet: datePicker.css
- Example XML: datePicker.xml
Comments on this Article