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..
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..