jquery 实现全选全不选

$("#checkedAll").click(function() { 
    if($(this).is(":checked")){
	$("input[name='select-goods']").prop("checked",true);
    }else{
	$("input[name='select-goods']").prop("checked",false);
    }
});

猜你喜欢

转载自blog.csdn.net/weixin_38114235/article/details/80240295