How to add checkbox per row when working with dataTable?

How to add checkbox per row when working with dataTable?

khoa235khoa235 Posts: 1Questions: 0Answers: 0
edited October 2009 in General
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

Replies

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
    Hi khoa235,

    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
This discussion has been closed.