Pass var to a href
<p>I´m trying to pass the src of an image to an a href that is created via javascript.</p>

<p>For example I have this <strong>var</strong>:</p>

<pre><code>var src = $(img).attr('src');
</code></pre>

<p>And I want to pass the <strong>src</strong> to the href in this modal (instead of the 'javascript:void(0)'):</p>

<pre><code>_this.modal_zoom = $('&lt;a /&gt;', {'href' : 'javascript:void(0)' , 'class' : 'jqzoom'})
</code></pre>

<p>How can I do it?</p>
