js jquery checkbox 选中
$("input[type=‘checkbox‘]").attr(‘value‘)
返回结果:501
$("input[type=‘checkbox‘]").is(‘:checked‘)
返回结果:选中=true,未选中=false
js:
if(document.getElementById("checkboxID").checked){
alert("checkbox is checked");
}
来源: http://www.bubuko.com/infodetail-2347680.html