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(input[type="checkbox"])').filter(function() {
return $(this).children().length === 1;
}).css({
backgroundColor: 'green'
});