Home » Jquery » javascript – The default change to DataTable-Exceptionshub

javascript – The default change to DataTable-Exceptionshub

Posted by: admin February 24, 2020 Leave a comment

Questions:

i’m using in library dataTables In the folder jquery.dataTables.min
And there is the option to display 10 rows or 25 or 50 or 100
10 rows are the default
How do I change the default to 50 rows?
Below is just the code that shows the options:

    aLengthMenu: [10, 25, 50, 100],
    iDisplayLength: 10,
How to&Answer:

Change its iDisplayLength to 50