Evan
Mar 4th, 2004, 10:01 AM
This script is suppose to check to see if a date is correctly entered. It doesnt work.
Anyone see how to fix it?
if (tempobj.name.substring(0,7)=="reqdate") {
if (tempobj.type=='text') {
var splitted = tempobj.value.match("/\[\d{1,4}\.\d{1,4}\.\d{1,4}\]$/");
if(splitted == null) {
pass=false;
}
break;
}
}
Anyone see how to fix it?
if (tempobj.name.substring(0,7)=="reqdate") {
if (tempobj.type=='text') {
var splitted = tempobj.value.match("/\[\d{1,4}\.\d{1,4}\.\d{1,4}\]$/");
if(splitted == null) {
pass=false;
}
break;
}
}