Here is the fiddle where i have search and working good but i want to change the existing code for getting letters background highlighted not total word. only letters background highlight........
Make changes in this code........
$("#search").keyup(function() {
value = $(this);
if (value.val() == "") {
$.each($("#ftz-table tbody tr td"), function() {
$(this).css('background-color', 'rgba(0,0,0,0)');
})
return;
}
$.each($("#ftz-table tbody tr td"), function() {
if (!($(this).text().toLowerCase().indexOf($(value).val().toLowerCase()) == -1)) {
$(this).css("background-color", "red");
} else {
$(this).css("background-color", "rgba(0,0,0,0)");
}
});
});