Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82475

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

$
0
0
var oTable = $('#sometable').dataTable();

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:
oTable.closest('.dataTables_scroll').children('.dataTables_scrollHead').find('input:checkbox')

Viewing all articles
Browse latest Browse all 82475

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>