K
Keith Bowes
cwj said:I have a form that I am validating. The script works fine in IE, but
Mozilla is a defferent story.
Here is the section that is giving me problems.
// Preferred contact method
if ((document.contact_form["contact_prefer"][0].checked == false)
&& (document.contact_form["contact_prefer"][1].checked == false)) {
field_errors = field_errors+"Preferred contact method -
Please tells us how you would prefer to be contacted \n";
errors++;
The Mozilla error reads:
document.contact_form["contact_prefer"][0] has no properties.
Do you have more than one form element with the name or id of
"contact_prefer"? You can't do that in Mozilla. You'll need to use
"contact_prefer0" and "contact_prefer1".