I using following code:
var search = 'test';
if ($('#sku').find(search) ){
//alert(search);
$(document).find(search).css('color','red');
<TABLE>
<tr>
<td id='search' > This is searching test !</td>
</tr>
</TABLE>
How can I colorize the word ‘test’ in my HTML with jQuery?
Thanks in advance!
Untested, but something like this should work: