Date validation for separate dropdowns of day, month and year
Hi,
I am forced to use 3 separate dropdowns on the form for inputting a date, with day/month/year coming in the request variable separately. How can I validate them to be a valid date?
Also, don't allow non-existing dates to be selectable in the dropdowns! You should only be showing valid dates. That's not very user friendly to show something they can select and then tell them it's invalid if they do. If they select month, update the days dropdown to only show valid days for the month, etc.
Thanks @Cronix, but this will need additional client-side programming. And I am already stuck with possibly-old-browsers on the client side (else I would have used datepicker straight!), so I don't think this intelligence will actually execute there (I wish it could!).
In any case, your tip is very relevant, and many thanks! :)