jQuery: How to find an image by its src
<p>I need to find an img by name and src. I have been trying the following to no avail.</p>

<pre><code>var s = $("img[src='/images/greendot.gif'][name='BS']");
</code></pre>

<p>The html:</p>

<pre><code>&lt;img alt="This item is active." name="BS" src="/images/greendot.gif"/&gt;
</code></pre>

<p>vs</p>

<pre><code>&lt;img alt="This item is not active." name="BS" src="/images/spacer.gif"/&gt;
</code></pre>
