How to hide "Showing 1 of N Entries" with the dataTables.js library

JavascriptDatatables

Javascript Problem Overview


How do you remove the "Showing 1 of N entries" line of text on a dataTable (that is when using the javascript library dataTables? I think I was looking for something along these lines...

 $('#example').dataTable({
      "showNEntries" : false
       });

Pretty sure this is a simple one, but cannot seem to find it in the docs.

Javascript Solutions


Solution 1 - Javascript

You can remove it with the bInfo option (http://datatables.net/usage/features#bInfo)

   $('#example').dataTable({
       "bInfo" : false
   });

Update: Since Datatables 1.10.* this option can be used as info, bInfo still works in current nightly build (1.10.10).

Solution 2 - Javascript

try this for hide

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

and try this for change label

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

});

Solution 3 - Javascript

If you also need to disable the drop-down (not to hide the text) then set the lengthChange option to false

$('#datatable').dataTable( {
  "lengthChange": false
} );

Works for DataTables 1.10+

Read more in the official documentation

Solution 4 - Javascript

Now, this seems to work:

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

it hides that div, altogether

Solution 5 - Javascript

It is Work for me:

language:{"infoEmpty": "No records available",}

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionnickLView Question on Stackoverflow
Solution 1 - JavascriptBMHView Answer on Stackoverflow
Solution 2 - JavascriptmamalView Answer on Stackoverflow
Solution 3 - JavascriptArian AcostaView Answer on Stackoverflow
Solution 4 - JavascriptIrfView Answer on Stackoverflow
Solution 5 - JavascriptSauliusView Answer on Stackoverflow