checking part of a file extension and adding a class using jquery
<p>I am trying to check for the following from within the file name:</p>

<p><code>images/PRODUCT/icon/</code></p>

<p>From the page that contains: <code>div.lookup-image-wrapper</code></p>

<p>If i match them both then i want to add a class to the image that contained:</p>

<p><code>images/PRODUCT/icon/</code></p>

<p><strong>HTML:</strong></p>

<pre><code>&lt;div class="lookup-image-wrapper" style="text-align: center"&gt;

    &lt;div id="divProductPicZ23280" style="display:none"&gt;&lt;/div&gt;

    &lt;div class="divProductPic" id="divProductPic23280"&gt;
        &lt;img alt="Camping" border="0" id="ProductPic23280" name="ProductPic23280" src="images/Product/medium/23280.jpg"&gt;
    &lt;/div&gt;

        &lt;img alt="Show Picture 1" border="0" onclick="setcolorpicidx_23280(1);" src="http://i47.tinypic.com/o7szev.jpg" style="cursor:hand;cursor:pointer;"&gt;

        &lt;img alt="Show Picture 2" border="0" onclick="setcolorpicidx_23280(2);" src="http://i47.tinypic.com/o7szev.jpg" style="cursor:hand;cursor:pointer;"&gt;

        &lt;img alt="Show Picture 3" border="0" onclick="setcolorpicidx_23280(3);" src="http://i47.tinypic.com/o7szev.jpg" style="cursor:hand;cursor:pointer;"&gt;

        &lt;img alt="Show Picture 4" border="0" onclick="setcolorpicidx_23280(4);" src="skins/skin_1/images/nopictureicon.gif" style="cursor:hand;cursor:pointer;"&gt;

        &lt;img alt="Show Picture 5" border="0" onclick="setcolorpicidx_23280(5);" src="images/PRODUCT/icon/23280_5_.jpg" style="cursor:hand;cursor:pointer;"&gt;
</code></pre>

<p></p>

<p><strong>jquery:</strong></p>

<pre><code>$("img[src='images/PRODUCT/icon/']").addClass("selected highlight");
</code></pre>

<p><a href="http://jsfiddle.net/tVvKL/" rel="nofollow">http://jsfiddle.net/tVvKL/</a></p>
