//后台查询页面 全选/全不选 功能 jQuery v1.9
$("#firstCheckbox").on("click",function(){
console.log("check="+$(this).prop("checked"));
if($(this).prop("checked")){
$("input[type=checkbox]").prop("checked",true);
}else{
$("input[type=checkbox]").prop("checked", false);
}
$("#firstCheckbox").on("click",function(){
console.log("check="+$(this).prop("checked"));
if($(this).prop("checked")){
$("input[type=checkbox]").prop("checked",true);
}else{
$("input[type=checkbox]").prop("checked", false);
}
});
function submitIDs(obj,tip){
console.log("submitIDs...");
if ($("input:checked").size() == 0) {
alert("请先选择要操作的内容!");
return false;
}
if(confirm(tip)){
createMark();
var _form = $("form");
_form.attr("action",$(obj).attr("method"));
_form.submit();
}
return false;
}