How to change results per page value in datatables
The fully correct answer would be to use both and display length to 5: $(document).ready( function(){ $(‘#table’).dataTable({ “iDisplayLength”: 5, “aLengthMenu”: [[5, 10, 25, 50, -1], [5, 10, 25, 50, “All”]] }); }); If you use JUST “iDisplayLength”, then the dropdown will not have that length in options later or when the page loads (instead you … Read more