判断checkbox是否选中的验证。input
var n = $("input:checked").length; if(n==0){ alert("未选中!"); }else{ alert("选中!"); }checkbox