Friday, July 15, 2016

How To Remove Length Menu Option From DataTables

Length menu option in Data Table will be used to decide how many number of rows to show in a single page .Please look at the below image to see the length menu


To remove the that option we have to use below snippet of code

$(document).ready(function() {
    $('#htmlTableId').DataTable( {
        "bInfo" : false ,
         "bLengthChange" : false
    } );
} );


Thanks for visiting...Enjoy!

1 comment: