jquerydatatables

How to suppress table headers completely in jQuery DataTables?


I am using the DataTables plugin (www.datatables.net) for jQuery to display tables on a web page.

After reading through the documentation and doing some searches, I am unable to find out how to completely suppress or hide table headers, using the DataTables options or API.


Solution

  • Why don't you simply hide them through css (i think datatables requires a thead section to work)?

    .dataTables_wrapper table thead{
        display:none;
    }
    

    fiddle here: http://jsfiddle.net/LhZF3/