Change values of select box of “show 10 entries” of jquery datatable

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

change the iDisplayLength. This for example:

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

0 Comment

NO COMMENTS

LEAVE A REPLY

Captcha image