JSFiddle - React, Tailwind, and code Playground
JavaScript
var table = $('#search').DataTable();
//Rich - Code to detect the enter key and trigger the product add.
$("#search_filter").unbind("keypress");
$("#search_filter" ).bind("keypress", function(e) {
if (e.keycode !== 13 || e.keycode !== 10) {
Table.fnFilter(this.value )
}else{
alert(String.fromCharCode(e.keycode));
}
});