Hide LengthMenu from Jquery datatable

Do it with:

"bLengthChange": false

This will hide the length dropdown.


You can do it by disabling the pagination:

"bPaginate": false

To disable pagination at all, then do:

"paging": false

Try with

$('#test').dataTable({
    "aaData": testdata,
    "aoColumns": [
        { "mDataProp": "id" },
        { "mDataProp": "country_code" },
        { "mDataProp": "title" },
        { "mDataProp": "pubdate" },
        { "mDataProp": "url" }
    ],
    "bLengthChange" : false, //thought this line could hide the LengthMenu
    "bInfo":false,    
});

Fiddle