how to dynamic create checkboxs for "select All" by datatable?

how to dynamic create checkboxs for "select All" by datatable?

jiweijiwei Posts: 4Questions: 0Answers: 0
edited January 2010 in General
so,i tried to provide a "select All" service for a datatables,but i didn't konw how to do it?somebody help?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hi jiwei,

    It's actually fairly easy to do. Just use fnGetNodes ( http://datatables.net/api#fnGetNodes ) and loop over that, to select your checkboxes and mark them as selected. $('input', oTable.fnGetNodes()).each(...); for example.

    Regards,
    Allan
  • jiweijiwei Posts: 4Questions: 0Answers: 0
    thank you for the help,got it
This discussion has been closed.