Ajax.InPlaceDateTimeSelect
November 7th, 2006 by SubZane
Creates several select controls in place of the html element with the id specified. It functions similar to “Ajax.InPlaceSelect” but instead it creates several select boxes with year, month, day, hour, minute for choosing date and time.
Version 0.91
- It now reads from innerHTML instead of given params
- Removed the params year,month,day,hour,minute
- It now selects correct year
- Fixed the slow loading issue
Changes
- 2006-11-15
- Now works in IE thanks to the guys at Ruby on Rails: Spinoffs Google Group and JSLint
Todo
- Validate input data
Demo
Alternative
A very nice alternative to this simple script is a visual calendar I found here:
DatePicker using Prototype and Scriptaculous
i just saw your demo on
http://www.subzane.com/demos/ajaxinplacedatetimeselect/
i have one question
how to i set the time to 12:01 AM?
the time combo start from 01 instead of 00.
Please advice.
Thank you.
Regards,
Romy