function forbid_submit(formname)
{
var frm=document.getElementsByName(formname)[0];
frm.eric_submit.disabled='true';
//alert('dd');
frm.submit();
}但eric_submit这个名字不能变,不然还要复杂些function forbid_submit(formname,submitname)
{
var frm=document.getElementsByName(formname)[0];
var execstr='frm.' + submitname + '.disabled=\'true\'';
eval(execstr);
frm.submit();
}掉用
onclick=forbid_submit('form2','mysubmit2')
{
var frm=document.getElementsByName(formname)[0];
frm.eric_submit.disabled='true';
//alert('dd');
frm.submit();
}但eric_submit这个名字不能变,不然还要复杂些function forbid_submit(formname,submitname)
{
var frm=document.getElementsByName(formname)[0];
var execstr='frm.' + submitname + '.disabled=\'true\'';
eval(execstr);
frm.submit();
}掉用
onclick=forbid_submit('form2','mysubmit2')
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货