How I hide a row in the header of a datatable
How I hide a row in the header of a datatable

Hi, I want to hide the first row, in this example I want to hide "Example 1"
https://live.datatables.net/clone/7930/edit
This question has an accepted answers - jump to answer
Answers
You can add
style="display: none;"
to thetr
or use jQuery hide() ininitComplete
, like this:https://live.datatables.net/matofeku/1/edit
In fact you could use jQuery hide() before initializing Datatables. Datatables doesn't have anything built in for hiding rows in the
thead
.Kevin
@kthorngren Thanks for your help, sorry I forgot to say that what I want to hide is in the excel button, not in the table
See this thread.
Kevin
It worked! I use customizeData in the exportOptions as seen here below
Thanks a lot