(转载)jquery checkbox 设置选中和不选中
https://blog.csdn.net/hantanxin/article/details/103187996
1.设置选中:$("#hasApply").prop("checked",true);
设置不选中:$("#hasApply").prop("checked",false);
或如下方法:
// $("#ck").attr("checked",true)//选中
// $("#ck").attr("checked",false)//未选中
2.获取选中的状态:var sta..
转载
2020-12-14 10:02:31 ·
3931 阅读 ·
0 评论