Q:

Remove a td based on its content with jQuery

I have a td with an image inside it I want to remove the whole td based on the directory of the image inside it.
The source code:
<td width="1" valign="top"><img src="/PBox_Border_Right_Top.gif" alt=""></td>

So I was looking for something like
td:contains img[src=image/source.gif].remove()

A:

DEMO
$('td img[src^="directory"]').parent().remove();

