« Return to the main article
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.
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.