Guyz,
I have a problem here is the code doesn't' work Please help
is something wrong please help
I have a problem here is the code doesn't' work Please help
Code:
function validateFormMultiple(theForm)
{
for (var i=0; theForm.same.checked; i++){
if (theForm.same[i].checked ){
if (theForm.Date[i].value == "") {
alert("Please Enter the Date.");
theForm.Date[i].focus();
return false;
}
if (theForm.Comments[i].value == "") {
alert("Please select the Inspection Date.");
theForm.Comments[i].focus();
return false;
}
theForm.EditType.value="Add";
return true;
}
else{
alert("Please Select Asset");
}
}
}
Comment