LZ试试这样可行function form2_check() {
iRows=tb1.rows.length-1;
for i=1;i <=iRows;i++) {
if (document.all("sj" + i).value == "") {
alert("时间错误!");
document.all("sj" + i).focus();
return false;
}
}
var el = document.createElement('input');
el.type = 'hidden';
el.name = 'kk';
el.value = iRows;
form2.appendChild(el);
return true;
}
iRows=tb1.rows.length-1;
for i=1;i <=iRows;i++) {
if (document.all("sj" + i).value == "") {
alert("时间错误!");
document.all("sj" + i).focus();
return false;
}
}
var el = document.createElement('input');
el.type = 'hidden';
el.name = 'kk';
el.value = iRows;
form2.appendChild(el);
return true;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货