Search code examples
javascriptdatatables

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


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.


Solution

  • 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).