Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

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!
SOLUTION
Avatar of HainKurt
HainKurt
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of curiouswebster

ASKER

Outside of format errors, I want to rely fully on the Date Picker for date validation of dates. I want to be able to easily determine that:

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.
SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks!