<input class="INPUT2" type="checkbox" name="filed" value="province">省份
<input class="INPUT2" type="checkbox" name="filed" value="unit">单位名称
<input class="INPUT2" type="checkbox" name="filed" value="sex">性别
<input class="INPUT2" type="checkbox" name="filed" value="name">姓名
<input class="INPUT2" type="checkbox" name="filed" value="duty">职务
?
<input type="checkbox" name="cball" id="cball"/> 全选/取消
<input type="checkbox" name="cbfan" id="cbfan"/> 反选
?
?
$("#cball").click(function(){
??$("input[name='filed']").attr("checked",$(this).attr("checked"));
?});
?
?$("#cbfan").click(function(){
??? ?$("[name='filed']").each(function(){
??????? ?if($(this).attr("checked"))
??????????? ?$(this).removeAttr("checked");?
?????????? ?else
???????????? ?$(this).attr("checked",'true');
??????? });
??? });