title: using lightbox on dynamically generated elements
body: <p>I'm using <a href="https://github.com/joshuagatcke/HTML-KickStart" rel="nofollow noreferrer">HTMLKickStart</a> , there seems to be a problem with dynamically generated links and using them with lightbox.</p>
  
  <p>I had already added the lightbox class but the link still behaves like a regular link:</p>
  
  <pre><code>var new_link = $('&lt;a&gt;').attr({'href' : 'php/group_members.php'}).appendTo(new_manage).addClass('lightbox');
  </code></pre>
  
  <p>There was a question before:</p>
  
  <p><a href="https://stackoverflow.com/questions/3226900/jquery-lightbox-on-dynamic-image">jquery lightbox on dynamic image</a></p>
  
  <p>And I tried the following:</p>
  
  <pre><code>$(document).find('a.lightbox').lightBox();
  </code></pre>
  
  <p>But it doesn't seem to be working either. Do you have a better idea on how to make this work or do you think this is a problem with the framework that I'm using.</p>