how to add a link to an image using jquery?
<pre><code> &lt;li id ="pdf1"&gt; &lt;img id ="pfd1img" src="/Content/img/pdf.png"/&gt;Catalogue&lt;/li&gt;
</code></pre>

<p>script:</p>

<pre><code> $("#pdf1img").attr('href', '/Content/pdf/' + data.pdf1);
</code></pre>

<p>Im trying to add a hyperlink to an image. I think im nearly there, but im missing something?</p>
