const dataTable = $(`#${tableId} .table`).DataTable({
...
});
$('#searchBtn').on('click', function() {
const searchKeyword = $(`#${searchKeywordInputId}`).val();
dataTable.search(searchKeyword).draw();
});
const dataTable = $(`#${tableId} .table`).DataTable({
...
});
$('#searchBtn').on('click', function() {
const searchKeyword = $(`#${searchKeywordInputId}`).val();
const columnIndex = 0 // 0, 1, 2, ...
dataTable.columns(columnIndex).search(searchKeyword).draw();
});