I have a simple script that isn't working. Error console says x is not defined and points to "document.wrl_addresschange1.form.submit();" Is there a syntax error of is there a file that it can't locate? Thanks
<script type="text/javascript">
function valAddrCh1(){
if ( (document.wrl_addresschange1_form.infotochange[0].checked != true )&&(document.wrl_addresschange1_form.infotochange[1].checked != true)&&(document.wrl_addresschange1_form.infotochange[2].checked != true)&&(document.wrl_addresschange1_form.infotochange[3].checked != true )&&(document.wrl_addresschange1_form.infotochange[4].checked != true) )
{
alert("Please Select the information you want to change ");
return false ;
}
else {
document.wrl_addresschange1_form.submit();
//alert("submitting");
return true;
}
}
Bookmarks