Martney Acha
Martney Acha

Reputation: 3002

Hide Pagination in Datatable not Remove

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>

Upvotes: 1

Views: 2986

Answers (1)

Abhishek Nayek
Abhishek Nayek

Reputation: 19

Set "bPaginate" to false in the datatable configuration.

Try this code:

$('#table_id').dataTable({    
    "bInfo": false,
    "paging": false,             
    "bPaginate": false,   
})

Upvotes: 1

Related Questions