勾选复选框按钮可用否则不可用

function check(){
var chec=document.getElementById("chec");
if(chec.checked==true){
alert(1111)
document.getElementById("btn").removeAttribute("disabled")
}else{
alert(22222)
document.getElementById("btn").disabled="disabled"
}
}
<div class="form-group">
<div class="col-sm-offset-2 col-sm-6">
<div class="checkbox">
<label>
<input type="checkbox" disabled>立即注册</button>
</div>
</div>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
  • 2021-10-12
  • 2021-09-03
  • 2021-11-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2021-11-30
  • 2022-12-23
相关资源
相似解决方案