I have a table like this.
<table>
<tr>
<td>one</td>
<td>two</td>
<td>one two</td>
</tr>
<tr>
<td>one</td>
<td>two</td>
<td>one two</td>
</tr>
<tr>
<td>one</td>
<td>two</td>
<td>one two</td>
</tr>
</table>
and jquery code to highlight tdif its valueone
$("table > tbody > tr > td:contains('one')").css("background", "#6a5acd");
And the code will do td highligted if its value is equal one two. I want to highlight only td that haveone
user3251564
source
share