Posted in Javascript onJune 26, 2006
从才子的BLOG上转来的:
以下是程序代码:
<script language="javascript">
function check(){
s.disabled=(t1.value==""||t2.value==""||t3.value=="")
}
</script>
<input name="t1" onpropertychange="check()" />
<input name="t2" onpropertychange="check()" />
<input name="t3" onpropertychange="check()" />
<input type="submit" name="s" disabled="desabled" />
function check(){
s.disabled=(t1.value==""||t2.value==""||t3.value=="")
}
</script>
<input name="t1" onpropertychange="check()" />
<input name="t2" onpropertychange="check()" />
<input name="t3" onpropertychange="check()" />
<input type="submit" name="s" disabled="desabled" />
判断是否输入完毕再激活提交按钮
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@