$(function(){$.fn.dataTableExt.oApi.clearSearch=function(a){var t=this,e=$('<button class="btn btn-search btn-sm" type="button" title="Clear">x</button>');$(e).click(function(){t.fnFilter(""),$("input[type=search]").val("")}),$(a.nTableWrapper).find("div.dataTables_filter label").append(e)},$.fn.dataTable.models.oSettings.aoInitComplete.push({fn:$.fn.dataTableExt.oApi.clearSearch,sName:"myClearSearch"})});