//完成单选与反选
Jquery代码
//全选按钮
$("#chkAll").click(function(){
var result=$(this).attr("checked");
$("input[name='chkItem']").attr("checked",result);
})
//反选
$("#chkRev").click(function(){
$("chkAll").attr("checked",false);
$("input[name='chkItem']").each(function(){
$(this).attr("checked",!$(this).attr("checked"));
})
})