<br> <br> <br>function asd(){ <br>var reg=document.getElementsByName("reg"); <br>if(reg[0].checked){ <br>document.getElementById("submit").disabled=false; <br>} <br>else { <br>document.getElementById("submit").disabled=true; <br><br>} <br>> } <br> <br><br>頭> <br> <br><input name="reg" type="checkbox" onclick="asd();"> <input type="submit" value="註冊" id="submit" disabled> 讀了嗎? <br>身體> <br>