判断是否输入完毕再激活提交按钮

2018-09-21 18:56

阅读:599

  从才子的BLOG上转来的:
以下是程序代码:
<scriptlanguage=javascript>
functioncheck(){
s.disabled=(t1.value==t2.value==t3.value==)
}
</script>
<inputname=t1onpropertychange=check()/>
<inputname=t2onpropertychange=check()/>
<inputname=t3onpropertychange=check()/>
<inputtype=submitname=sdisabled=desabled/>


评论


亲,登录后才可以留言!