Best way to get thead rows in a scroll-dataTable?

Best way to get thead rows in a scroll-dataTable?

vol7ronvol7ron Posts: 43Questions: 11Answers: 0
edited February 2013 in General
[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]

Replies

  • vol7ronvol7ron Posts: 43Questions: 11Answers: 0
    edited February 2013
  • vol7ronvol7ron Posts: 43Questions: 11Answers: 0
    It looks like this is also an option:
    [code]
    oTable.dataTableSettings[0].nScrollHead
    [/code]
This discussion has been closed.