I've added this code to validate a checkbox, however i'm getting a javascript error "Object expected"
Can you help?
Can you help?
if(!document.form._1105media[].checked) {
alert("REQUIRED: Please check the email address 1105media."«»);
return false;
}
This also doesn't work:
if(!form._1105media[].checked) {
alert("REQUIRED: Please check the email address 1105media."«»);
return false;
}
<br><br>Post edited by: jpipitone, at: 2008/01/17 22:40
This works:
if(!form.elements["_1105media[]"].checked) {
alert("REQUIRED: Please check the email address 1105media."«»);
return false;
}
This topic is locked and no more replies can be posted.