logo

New Response

« Return to the main article

You are replying to:

    • avatar
    • Kevin Longmuir
    • Posted on Fri 7 Nov 2003

    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.

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: