📌  相关文章
📜  复选框默认值和选中值在 jquery 中获取 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:56.746000             🧑  作者: Mango

代码示例1
//selected checkbox alert boolen value return
$('#test').click(function() {
    alert("Checkbox state (method 1) = " + $('#test').prop('checked'));
    alert("Checkbox state (method 2) = " + $('#test').is(':checked'));
});

Check me: 
  //@sujaY