jquery最精简的全选反选功能

RT代码:

function selallno(){
  $('#form2 input[name=sel]:checkbox:not(:checked)').attr('checked',$('#form2 input[name=sel]:checkbox:checked').attr('checked',false)); 
}

见笑了!

原文地址:https://www.cnblogs.com/guangxiaoluo/p/3337081.html