1

I have this script that works but it totally removes the pagination and display all the data, what I need is just to hide the pagination. any idea ?

I tried this but this is a different approach how to remove pagination in datatable

<script type="text/javascript">
$(document).ready(function() {
    $('#example').DataTable( {
        "paging":   false,
        "ordering": false,
        "bLengthChange": false,
        "info":     false
    });
} );
</script>
Martney Acha
  • 2,802
  • 4
  • 33
  • 48

1 Answers1

1

Set "bPaginate" to false in the datatable configuration.

Try this code:

$('#table_id').dataTable({    
    "bInfo": false,
    "paging": false,             
    "bPaginate": false,   
})
fcdt
  • 2,371
  • 5
  • 14
  • 26