Best way to get thead rows in a scroll-dataTable?
Best way to get thead rows in a scroll-dataTable?
[code]
var oTable = $('#sometable').dataTable();
[/code]
I'm trying to attach an event to a checkbox in the thead. Is there a function to retrieve header rows like fnGetNodes(), or must I do something like:
[code]
oTable.closest('.dataTables_scroll').children('.dataTables_scrollHead').find('input:checkbox')
[/code]
var oTable = $('#sometable').dataTable();
[/code]
I'm trying to attach an event to a checkbox in the thead. Is there a function to retrieve header rows like fnGetNodes(), or must I do something like:
[code]
oTable.closest('.dataTables_scroll').children('.dataTables_scrollHead').find('input:checkbox')
[/code]
This discussion has been closed.
Replies
[code]
oTable.dataTableSettings[0].nScrollHead
[/code]