You can use the dom option to hide the search input without disabling the search function. This is useful if you want to provide your own search input (perhaps column by column or worldwide). It also does what you asked at first - remove the original search without using CSS.
Here is the documentation: https://datatables.net/examples/basic_init/dom.html
And of course, an example:
var table = $ ('# example'). DataTable ({
paging: false,
bFilter: false,
ordering: false,
searching: true
dom: 't' // This shows just the table
});
You can also use this method to render input elsewhere. Depending on where you should visualize the input, you may not use custom at all.
source share