<script>
$(function(){
$("#all").click(function(){
if($("#all").attr("checked")==true){
$("input[name=id]").each(function() {
$(this).attr("checked",true);
});
}else{
$("input[name=id]").each(function() {
$(this).attr("checked",false);
});
}
})
})
</script>
全选功能
最新推荐文章于 2022-07-12 12:33:00 发布