How to hide “Showing 1 of N Entries” with jQuery datatables

By FoxLearn 5/28/2024 3:56:42 AM   140
How to hide "Showing # to # of # entries with jQuery datatables.net

To hide the "Showing # to # of # entries" message in jQuery DataTables, you can use CSS to hide the element containing this information. Here's how you can achieve it:

<style>
    .dataTables_info {
        display: none;
    }
</style>

This CSS rule targets the element with the class dataTables_info, which typically contains the message about the number of entries being shown. By setting its display property to "none", you effectively hide this element from view.

Another way, you can configure in javascript

datatables remove show entries text

$('#table').DataTable({
  "info": false
});

datatables change show entries text

If you want to change label

$('#table').DataTable({
 "oLanguage": {
               "sInfo" : "Showing _START_ to _END_ of _TOTAL_ entries",// text you want show for info section
            },

});