Small change for consistency.
Keeps date format consistent - allows to use posted date as default date in form if needed.
Updated minAge function to limit month/day options
The minAge option is an essential option for any of us who need to restrict registration (as an example) to individuals thirteen years or older for legal reasons. Currently, the bday-picker plugin limits the year dropdown, but doesn't adjust the available months or days. So anyone born in 1999 (for example) who hasn't had their birthday yet can put in an age (12 years and however many months) that is below the minimum age. I've added code to the plugin that uses the existing functionality for preventing future dates to also adjust for months and days below the minimum age. I added a fourth example to the index.html just to show the new functionality in place. Try selecting the most recent year and check the month and day dropdowns.
The addition of +"T00:00:00" in lines 87 and 117 are in an effort to pre...
…prevent the plugin from specifying date in the Date in the day field as being 1 day off from whatever the provided default date is. Example, when I provided a default date of 1999-11-01 the select menu would indicate instead, Oct 31 1999. From what I can tell, this is an issue with regard to timezone. By making these changes to the plugin I was able to fix the '1 day off' issue.
Added minAge to settings. Will determine the earliest date to display.
add id attr to hidden field
…aving to look it up again in the dom.
…an issue i also filed in the parent project
Fix hidden input value when dateFormat is default or littleEndian
Adding changeable field name for the hidden input