//全选
$("#bt_all").click(function(){
$("input:checkbox").attr("checked",true);
})
//全不选
$("#un_all").click(function(){
$("input:checkbox").attr("checked",false);
})
//反选
$("#res_all").click(function(){
$("input").each(function(){
$(this).attr("checked",!$(this).attr("checked"));
})
})
jquery实现全选、全不选、反选
最新推荐文章于 2021-07-16 20:27:39 发布