A simple way to implement smart date select boxes. Given month, day, and year select boxes, this plugin will automatically populate the day select box with the proper amount of days for a given year and month combination, taking leap years into account. Requires jQuery Select Box Manipulation plugin.
“taking leap years into account”. You really went all out dude! 5 minutes saved!
Daniel Biginton on
April 6th, 2010
The only thing i would like to see is that, for example, february 29 2008 was selected, but then the year amended to 2010, instead of the day selected the default ‘day’, the script automatically selects the max day of the month.
Other than that, its ace.
Nick Busey on
April 6th, 2010
@Nico Thanks!
@Daniel I considered this when building the plugin, but thought it might introduce errors in data entry. If the user picked a date that clearly doesn’t exist, this will force them to recheck the date they are entering and make sure it is correct, rather than defaulting to the closest available date.
Daniel Biginton on
April 7th, 2010
@Nick Thanks.
Is here the possibility to provide some code that would allow this functionality as an option as opposed to the core of the code?
Thanks
Daniel Biginton on
June 23rd, 2010
@Nico Thanks.
I was wondering if there is a update to the select boxes, allowing the script to update the fields day and month to disable the past dates based on the year selected?
“taking leap years into account”. You really went all out dude! 5 minutes saved!
The only thing i would like to see is that, for example, february 29 2008 was selected, but then the year amended to 2010, instead of the day selected the default ‘day’, the script automatically selects the max day of the month.
Other than that, its ace.
@Nico Thanks!
@Daniel I considered this when building the plugin, but thought it might introduce errors in data entry. If the user picked a date that clearly doesn’t exist, this will force them to recheck the date they are entering and make sure it is correct, rather than defaulting to the closest available date.
@Nick Thanks.
Is here the possibility to provide some code that would allow this functionality as an option as opposed to the core of the code?
Thanks
@Nico Thanks.
I was wondering if there is a update to the select boxes, allowing the script to update the fields day and month to disable the past dates based on the year selected?
Thanks