In my case, there is a text field to search the records
var search = cur_frm.doc.search_by_name.toLowerCase().replace(/ /g, '');
for (var i = 0; i < table.length; i++) {
uid = table[i].unique_identity_code.toLowerCase().replace(/ /g, '');
var condition = uid.includes(search)
if (condition == true) {
$("[data-name='" + table[i].name + "']").show()
} else {
$("[data-name='" + table[i].name + "']").hide()
}
}
I hope you find useful
