I have this html:
<div class="vt ddsitem">
<a href="url"><img class="pt" id="xyz1" src="url"></a>
<div>
<img class="updown" src="images/updown.gif">
<a href="url"><img class="bin" src="images/bin.gif"></a>
</div>
</div>
<div class="vt ddsitem">
<a href="url"><img class="pt" id="xyz2" src="url"></a>
<div>
<img class="updown" src="images/updown.gif">
<a href="url"><img class="bin" src="images/bin.gif"></a>
</div>
</div>
And i want to remove the vt ddsitem div in which in the image xyz2 is a child.
Tried a lot of things, like:
$('#xyz2').parent().parent().remove();
but none of them did the trick.
Anyone got a clue?