hide no data available in table datatable code example
Example 1: datatables hide showing entries
// pre v1.10
$('#example').dataTable({
bInfo : false
});
// v1.10+
$('#example').DataTable({
info : false
});
Example 2: 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*/);