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?
Asked
Active
Viewed 33 times
0
-
which datatable? can you share some reference or code? – Muhammad Shahzad Jun 24 '16 at 06:14
-
https://datatables.net/extensions/select/examples/initialisation/checkbox.html – Jab Jun 24 '16 at 06:15
1 Answers
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