Jquery 1.9.1 select all deselect reverse select

From , 3 Years ago, written in JavaScript, viewed 226 times.
URL https://pastebin.vip/view/e8542a04
  1. $(function(){
  2.                 //全部选择
  3.                 $("#all").click(function(){  
  4.                         $("#moduleList input[type='checkbox']").each(function(){
  5.                            $(this).prop("checked",true);
  6.                         });
  7.                 });
  8.                 //取消选择
  9.                 $("#delAll").click(function(){  
  10.                         $("#moduleList input[type='checkbox']").each(function(){
  11.                                 $(this).prop("checked",false);
  12.                         });  
  13.                 });
  14.        
  15.                 //反向选择
  16.                 $("#antiAll").click(function(){
  17.                         $("#moduleList input[type='checkbox']").each(function(){
  18.                                 $(this).prop("checked",!this.checked);              
  19.                         });
  20.                 });
  21.         });

Reply to "Jquery 1.9.1 select all deselect reverse select"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website