丁凯
javascript
js改变表单状态
四 10th
//用多选框 改变 按钮状态
<input type=”checkbox” id=”check”>
<input type=button value=try onclick=”with(check){disabled=disabled==false?true:false;}”>
<input type=button value=try2 onclick=”with(check){disabled=true;}”>
<input type=”checkbox” id=”check1″ onclick=”with(this){disabled=true;}”>
最近做作业碰到大量需要用到js的地方,js又是我的薄弱。记录下来 , 下次我就会了。。
在用户注册时 必须勾上‘我同意’的复选框,才可以点‘下一步’按钮用。
近期评论