使用JQuery實現復選框的全選和反選
jQuery(document).ready(function($) {
$("#checkAll").click(function(){
if(this.checked){
$("[name='complaintReasonVO.complaintReasons']").attr("checked",'true'); // 全選
}else {
$("[name='complaintReasonVO.complaintReasons']").removeAttr("checked"); // 反選
}
});