How do you show 5 entries in Datatables?
There is a option called pageLength . You can set this for show only 5 entries.
How to use pagination in DataTable?
The paging option is used to specify whether the paging of the DataTable is enabled or not. The DataTable splits the records being shown in multiple pages so that only a certain number of records are shown on a page. The number of records to show can be selected using the dropdown menu.