Answers for "datatable hide search and show entries"

1

hide search in datatable

Three ways of doing are:

For DataTables >=1.10, use:
	$('table').dataTable({searching: false, paging: false, info: false});

For DataTables <1.10, use:
	$('table').dataTable({bFilter: false, bInfo: false});

or using pure CSS:
	.dataTables_filter, .dataTables_info { display: none; }
Posted by: Guest on January-26-2021
0

datatable hide no data available in table

var someTableDT = $("#some-table").on("draw.dt", function () {
    $(this).find(".dataTables_empty").parents('tbody').empty();
}).DataTable(/*init object*/);
Posted by: Guest on January-20-2021

Code answers related to "datatable hide search and show entries"

Code answers related to "Javascript"

Browse Popular Code Answers by Language