点击chechbox 触发事件

来源:百度知道 编辑:UC知道 时间:2024/05/10 18:02:53
<form name="OpenRegister0" action="1.asp" method="post">
<td align="left"><input onclick="doit()" type="checkbox" value="checkbox" name="Agree">
我同意<input type="submit" value="下一步>>" name="Next" disabled>

求1.asp的代码:实现点击chechbox后,button可以点击(disabled消失)。
用其他方法也可以,不一定非要用ASP

具体的HTML代码不是很记得了,好久没有用HTML了,你可以用JS实现啊,在本页面里面加入JS脚本,点击checkbox以后就会触发checkbox的actionlistener事件,在JS里面写一个方法
if(checkbox.checked){
Next.disabled=false;
}else{
Next.disabled=true;
}