<label class="allXuan">全选上传 <input type="checkbox" name="idup" id="idup"></label>
<label class="allXuan">全选下载 <input type="checkbox" name="iddo" id="iddo"></label>
<label class="allXuan">全选审批 <input type="checkbox" name="idsp" id="idsp"></label>
var tog = false;
$('#idup').click(function () {
$('input[name*="upload"]').attr('checked',!tog);
tog = !tog;
});
var tog1 = false;
$('#iddo').click(function () {
$('input[name*="down"]').attr('checked',!tog1);
tog1 = !tog1;
});
var tog2 = false;
$('#idsp').click(function () {
$('input[name*="examine"]').attr('checked',!tog2);
tog2 = !tog2;
});