JSFiddle - React, Tailwind, and code Playground
HTML
<table border="1">
<tr>
<td style="height: 1em"></td>
</tr>
<tr>
<td>
Hello
</td>
</tr>
<tr>
<td>
<input type="checkbox">
</td>
</tr>
<tr>
<td>
<input type="checkbox">
<img src="http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png">
</td>
</tr>
</table>
JavaScript
$('td:has(:checkbox:only-child)').css('backgroundColor', '#00ffff');