//全选
var tog = false;
$("#checkAll").click(function() {
$("input[type=checkbox]").attr("checked",!tog);
tog = !tog;
});
//删除
$("#lbDelete").click(function (){
var i=$("input[type=checkbox]:checked").length; //获得选中的个数s
if(i<1){
alert("请先选择您要删除的信息!");
return false;
}else{
return true;
}
});