How to add checkbox per row when working with dataTable?
How to add checkbox per row when working with dataTable?
Hi All,
I am a newbie, i see jquery needful for my job. i have research dataTable and i have a question
1. "How to add checkbox per row when draw a dataTable?"
2. "How to add a checkbox on header of dataTable (used for checkAll)?"
Please help me. Thanks
I am a newbie, i see jquery needful for my job. i have research dataTable and i have a question
1. "How to add checkbox per row when draw a dataTable?"
2. "How to add a checkbox on header of dataTable (used for checkAll)?"
Please help me. Thanks
This discussion has been closed.
Replies
1. Here is an example with checkboxes: http://datatables.net/examples/api/form.html
2. Just as you would do for any other table, except you should use fnGetNodes() as your selector to get all TR elements in the table. For example $('td input', oTable.fnGetNodes())....
Regards,
Allan