Actually I am new to jQuery datatables plugin.
I have attached the plugin to my tables using this method using this code.
$(document).ready(function()
For the actual version in Dec 2018 (v1.10.19) you need to do this steps:
Hide the default search box (CSS):
.dataTables_filter { display: none; }
Add new filter to your desired place (HTML)
Search:
After your DataTables inicialisation function you need to write your search function (JS):
$(document).ready(function() {
var table = $('#example').DataTable();
$('#searchFilter').on( 'keyup', function () {
table.search( this.value ).draw();
} );
Note: fnfilter is deprecated, so use search(), but search() doesn't redraw the table, so you need to use draw() too.