全选代码:
function checkboxall(){
$("input[@type='checkbox']").each(function(){
$(this).attr("checked",true);
});
}
反选代码:
function rcheckboxall(){
$("input[@type='checkbox']").each(function(){
if($(this).attr("checked")){
$(this).attr("checked",false);
}else{
$(this).attr("checked",true);
}
});
}