[JavaScript] jQuery控制asp.net的GridView中的checkbox全选和反选 →→→→→进入此内容的聊天室

来自 , 2021-04-22, 写在 JavaScript, 查看 147 次.
URL http://www.code666.cn/view/11f38f8e
  1. //全选、取消全选  
  2. $("#checkedAll").click(function() {  
  3.                 if ($("#checkedAll").is(":checked")) {  
  4.                     $("#GridView1 input[type=checkbox]").attr("checked", true);  
  5.                 }  
  6.                 else {  
  7.                     $("#GridView1 input[type=checkbox]").attr("checked", false);  
  8.                 }  
  9.             });
  10. //javascript/6656

回复 "jQuery控制asp.net的GridView中的checkbox全选和反选"

这儿你可以回复上面这条便签

captcha