apply event after DOM modifies
<p>This is probably a very common question but here it goes.
I created an image carousel for some small thumbs pics . When i click on a thumb it makes it slightly bigger and adds the id #click to it . I want to add the fancybox viewer if you click it again. Obviously $('a#click').click() did not work because the element is created afterwards, how to i make the script take into consideration these modifications ? I tryed  </p>

<pre><code> $('a#click').live('click', function() {
   $(this).fancybox();
 });
</code></pre>

<p>But that didn't work.</p>
