SoFunction
Updated on 2025-04-10

Select the check box button to gray otherwise the button is available


<pre name="code" class="html"><html>
<head>
<script>
function asd(){
var reg=("reg");
if(reg[0].checked){
("submit").disabled=false;
}
else {
("submit").disabled=true;

}
}
</script>

</head>
<body>
<input name="reg" type="checkbox" onclick="asd();" />Read it?
<input type="submit" value="register" disabled/
</body>
</html></pre><br>
<br>
<pre></pre>
<pre></pre>