Как обновить статус для всех, установите флажок на всех страницах статуса обновления - PullRequest
0 голосов
/ 10 июня 2019

JQuery:

$(document).ready(function() {
  var table = $('#mytable').DataTable();
  $('.checkall').click(function() {
    table.column(0).nodes().to$().each(function(index) {
      $(this).find('.checkbox').attr("checked", true);
    });
    table.draw();
  });

  $('.uncheckall').click(function() {
    table.column(0).nodes().to$().each(function(index) {
      $(this).find('.checkbox').attr("checked", false);
    });
    table.draw();
  });
});
...