A page contains a search input field and a table.
How to highlight, in the table, all substrings that match the text in the input field?
I have tried this, but it changes the background of the td element.
$(".projects-list > tbody > tr > td:contains('"+$(this).val()+"')").css("background", "#6a5acd");
How to highlight only the part of text that match?