0

I am using data tables. I need to have a check box which on selection selects all other check boxes. How can I achieve this?

Jab
  • 119
  • 1
  • 2
  • 17

1 Answers1

0

Please check this

$('#myTable').DataTable( {
    buttons: [
        'selectAll',
        'selectNone'
    ],
    language: {
        buttons: {
            selectAll: "Select all items",
            selectNone: "Select none"
        }
    }
} );
Muhammad Shahzad
  • 9,340
  • 21
  • 86
  • 130