I've been using the row.add function to add body rows into my table.
Is there a way I can add in <thead> rows?
Not via the DataTables API. You need to modify the thead using jQuery / DOM methods before your initialise the DataTable.
The problem is the content for the thead tags are coming from my fetch Json data as well as my tbody rows.
I'm retrieving a multi dimensional array, the first array is the header, the second is also an array but will be the rows.
See this faq. Here is an example:
It looks like you're new here. If you want to get involved, click one of these buttons!
DataTables designed and created by SpryMedia Ltd.
SpryMedia Ltd is registered in Scotland, company no. SC456502.