adding class to this href .. not working?
<p>We have uplaod function on our site. And uploaded file, displays link which on click user can see file they have uploaded in new window.</p>

<p>We also use divbox <a href="http://jquery.phpbasic.com/divbox" rel="nofollow">http://jquery.phpbasic.com/divbox</a></p>

<p>My code is this:</p>

<pre><code>$("#uploader" + queueId).html("
 &lt;div class='cancel'&gt;
  &lt;input class='button_cancel' name='removeFile' fileName='"
  +fileObj.name.replace("'", "%27")+"' type='button'&gt;
   &lt;/div&gt;
  &lt;a class='lightbox' href='" + self.attr("path") 
   + fileObj.name.replace("'", "%27") + "'&gt;&lt;span class='fileName'&gt;"
+fileObj.name+"&lt;/span&gt;&lt;/a&gt;");
</code></pre>

<p>For some reason when we click on the link, it still opens in new window and doesnt initiate the lightbox.</p>

<p>In my page i see this ( all normal )</p>

<pre><code>&lt;a class="lightbox" href="uploads/nutshell.png"&gt;
 &lt;span class="fileName"&gt;nutshell.png&lt;/span&gt;
&lt;/a&gt;
</code></pre>

<p>Which should fire the lightbox.. Anything scream out at you in the js code I posted above ? I am wondering if its self.attr("path")</p>

<p>Here is what we have::::::</p>

<p>in the js for divbox we have</p>

<pre><code>$('.lightbox').divbox({caption: false});
</code></pre>

<p>in the js for the uploader we have.</p>

<pre><code>$("#uploader" + queueId).html("&lt;div class='cancel'&gt;&lt;input class='button_cancel' name='removeFile' fileName='"+fileObj.name.replace("'", "%27")+"' type='button'&gt;&lt;/div&gt;&lt;a class='lightbox' href='" + self.attr("path") + fileObj.name.replace("'", "%27") + "'&gt;&lt;span class='fileName'&gt;"+fileObj.name+"&lt;/span&gt;&lt;/a&gt;");
</code></pre>
