≡
×
Plus
Manual
Examples
Reference
Download
Blog
Community
Support
how to dynamic create checkboxs for "select All" by datatable?
how to dynamic create checkboxs for "select All" by datatable?
jiwei
Posts: 4
Questions: 0
Answers: 0
January 2010
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
allan
Posts: 65,815
Questions: 1
Answers: 10,950
Site admin
January 2010
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
jiwei
Posts: 4
Questions: 0
Answers: 0
January 2010
thank you for the help,got it
This discussion has been closed.
Replies
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