1.全/反选功能
$("#select_toggle").click(function(){
$("td
:checkbox").each(function(){
if($(this).attr("checked")==true)
{
$(this).attr("checked",false);
}
else
{
$(this).attr("checked",true);
}
});
});
2.全选功能
$("#select_all").click(function(){
$("td :checkbox").each(function(){
$(this).attr("checked",true);
});
});
3.全不选功能
$("#select_not").click(function(){
$("td :checkbox").each(function(){
$(this).attr("checked",false);
});
});
关于jquery首先全/反选功能和全/全不选功能,布布扣,bubuko.com
原文:http://www.cnblogs.com/runong/p/3582602.html