jquery 判断 checkbox 是否选中
时间:2019-07-12 18:42:56
收藏:0
阅读:106
if($(this).prop("checked")){ $(this).prop("checked",false); }else{ $(this).prop("checked",true); }
.prop(‘checked‘) // 返回true/false
$("#cb1").prop("checked",true);
原文:https://www.cnblogs.com/linxixinxiang/p/11177728.html
评论(0)