jquery和js如何判断checkbox是否选中

1 $("input[type='checkbox']").is(':checked')
2 //返回结果:选中=true,未选中=false
3 
4  
5 
6 if(document.getElementById("checkboxID").checked){
7 alert("checkbox is checked");
8 }
原文地址:https://www.cnblogs.com/gxp69/p/7081869.html