I want to select every cell that has a certain text as content. I do it like that:
$("td:contains('Some Text')")
But in the following mark up that expression finds two tds:
<table>
<tr>
<td>
<table>
<tr>
<td>Some Text</td>
</tr>
</table>
</td>
</tr>
</table>
I only want the cell that actually contains the text, not the cell that contains a table that contains the text in one of its cells.
How do I modify my selector to get there?
Try this:
Fiddle