logo

New Response

« Return to the main article

You are replying to:

  1. hello sir i did validate for the date field and now i want to validate the range(i.e.the day is 1-31 and the month is 12 and the year) how to i validate..

    this is my code... var re2= /^\d{4}\/\d{2}\/\d{2}$/ if (!re2.test(dob.value)) { alert("Error:Date format must contain yyyy/mm/dd"); dob.focus(); return false; } return true;

    then how i validate the range for the date field..

Your Comments

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