logo

Response

« Return to the main article

You are viewing this page out of context. To see it in the context it is intended please click here.

About This Page

Reply posted by Kevin Longmuir on Fri 7 Nov 2003 in response to Form Validator R2.0

Re: What's the chances of that...

Thanks for Form Validator R2.0. Helped me a great deal!


Replace:

return /^[0-2]?\d:[0-5]{1}\d/.test( this );


with:


return /^([0-1]?[0-9]|[2][0-3])(:[0-5][0-9])?$/.test( this );


to secure time range between 00:00 - 23:59 hrs. The former allows time values
of 29:59hrs.


Regards,
Kevin.