jQuery 设置checkbox全选
//实现checkbook的全选
$('#select_all').click(function(){
if($('#select_all').is(':checked')){
$("input[name='newId']").attr("checked",true);
}else{
$("input[name='newId']").attr("checked",false);
}
});
posted on 2015-01-14 10:28 w_xunfangA 阅读(124) 评论(0) 编辑 收藏 举报