0

Is it posible to decrease the show entries in datatable. I want to only show 5 entries instead of 10.

1 Answers1

0

change the iDisplayLength. This for example:

$(document).ready(function() {
$('#tbl_id').dataTable({
    "aLengthMenu": [[25, 50, 75, -1], [25, 50, 75, "All"]],
    "iDisplayLength": 5
});
} );
Neha
  • 3,456
  • 3
  • 14
  • 26