Selecting all rows in table?
Selecting all rows in table?
ShahiDev
Posts: 16Questions: 7Answers: 0
I want a checkbox in header , when clicking on it , it will select all rows in table. I'm already able to select individual rows using checkbox, but having trouble in producing a checkbox in header and selecting all rows. How to do it?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Are you using the Select Extension?
If so this example should help:
https://datatables.net/extensions/select/examples/api/select.html
Kevin
Thanks @kthorngren but i want checkbox in header not a button, I've seen that too. But how can i have a checkbox in column zero that on check will select all the elements in datatable?
Maybe this thread will help.
https://datatables.net/forums/discussion/49877
Kevin