Is it posible to decrease the show entries in datatable. I want to only show 5 entries instead of 10.
Asked
Active
Viewed 402 times
0
-
you need to show some code in order to get some help on how to achieve this. – Gilles Gouaillardet Oct 09 '17 at 03:32
-
1Possible duplicate of [jQuery DataTables Pagination Size](https://stackoverflow.com/questions/8051302/jquery-datatables-pagination-size) – davidkonrad Oct 09 '17 at 11:30
1 Answers
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