1 $("input[type='checkbox']").is(':checked')
2 //返回结果:选中=true,未选中=false
3 
4  
5 
6 if(document.getElementById("checkboxID").checked){
7 alert("checkbox is checked");
8 }

 

相关文章:

  • 2021-12-09
  • 2022-12-23
  • 2022-01-06
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2021-12-09
相关资源
相似解决方案