Closed elfaq closed 3 years ago
i tried the method suggested by the datatables documentation, but failed, The following column filter script code that I use
// Setup - add a text input to each footer cell $('.list_data thead tr:eq(1) th.kolomfilter').each( function () { var title = $(this).text(); // $(this).html( '<input type="text" class="form-control" placeholder="'+title+'.." />' ); $(this).html( '<input type="text" class="form-control form-control-sm" placeholder="...." />' ); } ); // Apply the search table.columns('.kolomfilter').every( function () { var that = this; $( 'input', this.header()).on( 'keyup change clear', function () { if ( that.search() !== this.value ) { that .search( this.value ) .draw(); } } ); } );
Hi, TablesIgniter only supports server-based search. You can refer to the examples in the document to implement the ajax-based search function!
i tried the method suggested by the datatables documentation, but failed, The following column filter script code that I use