Javascript and Lightbox
<p>I want to add Lightbox to a image which is output by Javascript. The image link is built up dynamically so thats why I am doing it this way!</p>

<p>I have looked on S.O. but no luck with what is already there...</p>

<p>The code currently is;</p>

<pre><code>$("#imgMain img").attr("src","/_images/multi/"+productCode+"/"+imgCodeAlt+"_l.jpg"); 
</code></pre>

<p>And i somehow need to append it with rel="lightbox"</p>

<p>Thanks in advance :)</p>

<p>Shaun</p>
