For me (and I know that it would be a strange need) I needed to hide the main table, but save the results (i.e. the X-results of X are filtered out).
$('div.dataTables_wrapper thead,div.dataTables_wrapper tbody').hide();
The above is fixed for me. If you have a footer, you also need to add ,div.dataTables_wrapper tfoot .
Antony
source share