How can I remove the search bar and footer added by the jQuery DataTables plugin?

前端 未结 19 2652
孤街浪徒
孤街浪徒 2020-12-07 07:45

I am using jQuery DataTables.

I want to remove the search bar and footer (showing how many rows there are visible) that is added to the table by default. I just wan

19条回答
  •  悲哀的现实
    2020-12-07 08:17

    Check out http://www.datatables.net/examples/basic_init/filter_only.html for a list of features to show/hide.

    What you want is to set "bFilter" and "bInfo" to false;

    $(document).ready(function() {
        $('#example').dataTable( {
            "bPaginate": false,
            "bFilter": false,
            "bInfo": false
                     } );
    } );
    

提交回复
热议问题