<a href="javascript:f_submit('legal.jsp','3')"></a>function f_submit(url,arg){
alert("aaaaa");
document.myForm.consultationType.value=arg;
document.myForm.action=url;
document.myForm.submit();
return false;
}运行出错'document.myForm1.consultationType' 为空或不是对象,可我的form名子是myForm呀,而且也没有其它表单了,这是怎么回事呀!!!
alert("aaaaa");
document.myForm.consultationType.value=arg;
document.myForm.action=url;
document.myForm.submit();
return false;
}运行出错'document.myForm1.consultationType' 为空或不是对象,可我的form名子是myForm呀,而且也没有其它表单了,这是怎么回事呀!!!
alert("aaaaa");
alert(document.myForm);
alert(document.myForm.consultationType);
alert(document.myForm.consultationType.value);
document.myForm.consultationType.value=arg;
document.myForm.action=url;
document.myForm.submit();
return false;
}
运行出错'document.myForm1.consultationType' 为空或不是对象,可我的form名子是myForm呀,而且也没有其它表单了,这是怎么回事呀!!!怎么是myForm1 ?? 难道你的源码里面的document.myForm.consultationType.value=arg; 是document.myForm1.consultationType.value=arg啊;
晕,没有看出来什么问题 =_=!
在看看 呵呵!