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

前端 未结 5 2163
囚心锁ツ
囚心锁ツ 2020-12-13 05:23

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

5条回答
  •  北海茫月
    2020-12-13 05:54

    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
                },
    
    });
    

提交回复
热议问题