0

in datatables there is a search bar on top of the table and there is search bar on each column is it possible to remove the top search bar ?

i know i can use {searching: false} but it will disable searching on each column too i just want to hide/remove the top search bar i want other search bars work properly

here's my js code :

$('#table-1').dataTable({paging: false, bDeferRender: true, bProcessing: true});
var table = $('#table-1').dataTable();
$('#table-1 tfoot th').each(function (i) {
    var title = $('#table-1 thead th').eq($(this).index()).text();
    var serach = '<input type="text" class="coulmnSearch" placeholder="جستجوی ' + title + '" />';
    $(this).html('');
    $(serach).appendTo(this).keyup(function(){table.fnFilter($(this).val(),i)})
});
Erfan
  • 21
  • 5

0 Answers0