Make image link with the same href using jQuery
<p>Im trying to make my img link to this same image. Unfortunately it is not working.</p>

<pre><code>&lt;img src="someimage.jpg" width="120" height="120" /&gt;
</code></pre>

<p>and this is what im trying to acheave:</p>

<pre><code>&lt;a href="someimage.jpg"&gt;
    &lt;img src="images/6208606.jpg" width="120" height="120" /&gt;
&lt;/a&gt;
</code></pre>

<p>but this don't seems to be working</p>

<pre><code>var ImgScr = $('.gallery img').attr('scr');

$('.gallery img').wrap('&lt;a&gt;&lt;/a&gt;').attr('href', ImgScr);
</code></pre>

<p>Any help very appreciate</p>
