For DataTables >=1.10, use:
$('table').dataTable({searching: false, paging: false, info: false});
If you still want to be able the .search()
function of this plugin, you will need to "hide" the search bar html with the dom
setting:
$('table').dataTable({dom: 'lrt'});
The defaults are lfrtip
or <"H"lfr>t<"F"ip>
(when jQueryUI
is true), f
char represents the filter (search) html in the dom, ip
for the info and pagination (footer).
For DataTables <1.10, use:
$('table').dataTable({bFilter: false, bInfo: false});
or using pure CSS:
.dataTables_filter, .dataTables_info { display: none; }
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…