jQuery function only inside a specific div ID
<p>I have the following function that I only want to run inside <code>&lt;div id="imgWrapper"&gt;</code></p>

<p>I have tried a few things with parent but I cannot seem to figure this out. </p>

<pre><code> &lt;script type="text/javascript" language="javascript"&gt;
    $(document).ready(
        function () {
            $("img").each(function () {
                var src = $(this).attr("src");
                if (src.substring(0, 1) == "/")
                    $(this).attr("src", "http://serverName.com/" + src.substring(1))
            });

        }
     ); 
 &lt;/script&gt; 
</code></pre>
