Hi, any one know why this script doesn't work right??
for(i=0; i<=6; i++) {
if (!document.formsreq.APPLICATIONS(i).checked) {
alert ("Please select form."
return false;
}
else {
return true;
}
}
this is supposed to check to see if any one of 7 checkboxes are checked, and if any one is checked it's supposed to submit, but this code for some reason only works if the first checkbox is checked, not if any other checkboxes are checked,why??
for(i=0; i<=6; i++) {
if (!document.formsreq.APPLICATIONS(i).checked) {
alert ("Please select form."
return false;
}
else {
return true;
}
}
this is supposed to check to see if any one of 7 checkboxes are checked, and if any one is checked it's supposed to submit, but this code for some reason only works if the first checkbox is checked, not if any other checkboxes are checked,why??