<script> for (i=1;i<=parseInt(Form1.icount.value);i++) { if (Form1.all("select" + i ).checked==true) { iii = Form1.all("select" + i ).value; if ( parseInt(Form1.all("Ffsl" + iii )) > parseInt(Form1.all("JcKucun" + iii )) ) { alert("发放量不能大于库存量!"); Form1.all("Ffsl" + iii ).focus(); Form1.all("Ffsl" + iii ).select(); return (false); } } } </script> 好了,不报错了!
Form1.all("Ffsl" + iii ).focus(); Form1.all("Ffsl" + iii ).select();括号不匹配
for (i=1;i<=parseInt(Form1.icount.value);i++) {
if (Form1.all("select" + i ).checked==true) {
iii = Form1.all("select" + i ).value;
if ( parseInt(Form1.all("Ffsl" + iii )) > parseInt(Form1.all("JcKucun" + iii )) ) {
alert("发放量不能大于库存量!");
Form1.all("Ffsl" + iii ).focus();
Form1.all("Ffsl" + iii ).select();
return (false);
}
}
}
</script>
好了,不报错了!
Form1.all("Ffsl" + iii ).select();括号不匹配
ie的提示大多数指的位置都不对。