Wednesday, April 1, 2009

[jQuery] Re: [validate] Validating a date

It just validates the date format, and doesn't do any sanity checks.
If you need that, you could implement a custom method
(http://docs.jquery.com/Plugins/Validation/Validator/addMethod), maybe
using a date library like datejs.com.

Jörn

On Tue, Mar 31, 2009 at 10:51 PM, Erich93063 <erich93063@gmail.com> wrote:
>
> I am using the jquery validate plugin and using the "date" validation,
> but it doesn't seem to be working right. If I enter "dfsdfs" I will
> get "Please enter a valid date", but if I enter "65/65/6565" which
> obvisouly is NOT a valid date, it will pass the validation just
> fine. ???

No comments: