curiouswebster
asked on
Can jQuery Date Picker be made to force date validation?
I am about to commit to using jQuery Date Picker since I do n ot want to code custom date validation. But when I type an invalid date (2/30/2011) into the text field here:
http://jqueryui.com/demos/datepicker/#dropdown-month-year
nothing happens.
Can validation be turned on? OR, is there an easy way for me to find out the entered a date and that jQuery Date Picker consider it invalid?
Thanks!
http://jqueryui.com/demos/datepicker/#dropdown-month-year
nothing happens.
Can validation be turned on? OR, is there an easy way for me to find out the entered a date and that jQuery Date Picker consider it invalid?
Thanks!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That's one solution, for sure. But that makes it harder for me to convince people the Date Picker will improve the user experience. It's kind of strange to have a text file that does not work. Can't I catch an event every time they update that field, then when they have inputted a properly formatted date, check the date's validity with the Date Picker?
Curious.
Curious.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!
ASKER
2/30/2011 is not valid but do not want to code the logic about Febrary and leap years.
How can I easily use that kind of validation?
Thanks.