How to Select All Div's which have a children image with some specfic src?
<p>Let's say I have,</p>

<pre><code>&lt;div&gt;
  &lt;img src='aaBB_a.png' /&gt;
&lt;/div&gt;

&lt;div&gt;
  &lt;img src='aaa_a.png' /&gt;
&lt;/div&gt;

&lt;div&gt;
  &lt;img src='aaBB_a.png' /&gt;
&lt;/div&gt;
</code></pre>

<p>I need to select all div's (not images) which contain a img child which src contain BB_. In above example, I need to select first and third(not second). I have tried this, </p>

<pre><code>'div img[src*="BB_"]',
</code></pre>

<p>But it is selecting images not div.</p>

<p><strong>Update</strong>: I need to pass this to jquery delegate,</p>

<p>$('#container').delegate('div img[src*="BB_"]','mouseover',function(){
})</p>
