jquery代码

 1 $(function () {
 2             $('#inputCheck').click(function () {
 3                 if ($(this).attr("checked")) {//全选
 4                     $("input[name='chkSelect']").attr("checked", $(this).attr("checked"));
 5                     $("#selectAll").text("取消全选");
 6                 } else {
 7                     $('table input[type=checkbox]').attr('checked', false);
 8                     $("#selectAll").text("全选");
 9                 }
10             });
11         });
View Code

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2021-06-18
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
猜你喜欢
  • 2021-05-22
  • 2021-09-13
  • 2021-07-14
  • 2021-12-30
  • 2022-01-10
  • 2022-12-23
相关资源
相似解决方案