I'm a newcomer to jQuery, and I'm wondering if you can choose a div according to an image's source that's contained within? and take away the whole div whether it finds a case?

So within this example wouldso would I examine all div's having a class of thumbnail for image


and remove individuals divs?

<div class="thumbnail">
    <a href="http://www.demo.com">
        <img src="http://demo.com/wp-content/themes/TheStyle/timthumb.php?src=&amp;h=180&amp;w=222&amp;zc=1&amp;q=90">
    <div class="date">
        January 1st

Make use of the [cde] selector.


or choose the $('div.thumbnail:contains(img[src="http://example.com/foo/bar"])').remove(); and employ [cde]:


Learn how to search with the jQuery API docs. They'll answer 99% questions you may have.

Make use of the :contains() selector, like so: