title: Click event function not being fired from inside Fancybox lightbox
body: <p>I am using fancybox <a href="http://fancyapps.com/fancybox/" rel="nofollow">http://fancyapps.com/fancybox/</a> to add a lightbox popup to my site. I have also added a link under the lightbox pop out image, and am trying to change other things on the page.</p>
  
  <p>If I put the click function into jsfiddle it works just fine :</p>
  
  <p><a href="http://jsfiddle.net/cmVjN/" rel="nofollow">http://jsfiddle.net/cmVjN/</a></p>
  
  <p>but when it is clicked from inside the lightbox the click event function isnt triggered :</p>
  
  <pre><code>        &lt;script&gt;
          $(document).ready(function() {
          $(".fancybox-thumb").fancybox({
               afterLoad: function() {
              this.title = '&lt;a class="selectlink" href="#" id="' + this.title + '"&gt;Select This Image&lt;/a&gt; ';
          },
              prevEffect  : 'none',
              nextEffect  : 'none',
              helpers : {
  
                  title   : {
                      type: 'outside'
                  },
                  thumbs  : {
                      width   : 50,
                      height  : 50
                  }
              }
  
          });
  
  
      $('.selectlink').click(function () {
          var myId = $(this.id);
          alert(this.id);
          $('#' + myId).prop('checked', true);
      });
      });
      &lt;/script&gt;
  </code></pre>
  
  <p>This is the html / php</p>
  
  <pre><code>echo '&lt;div class="imagewrapper"&gt;';
  echo '&lt;a title="'.$row2['id'].'" class="fancybox-thumb" rel="fancybox-thumb" href="albums/'.$albumid.'/800x600/'.$row2['image'].'"&gt;&lt;img style="border-radius:5px;" src="albums/'.$albumid.'/thumbnails/'.$row2['image'].'" /&gt;&lt;/a&gt;';
    echo '&lt;div style="text-align:center;"&gt;';
    echo '&lt;strong&gt;Select : &lt;/strong&gt;&lt;input class="selectcheckbox" type="checkbox" name="'.$row2['image'].'" id="'.$row2['id'].'" /&gt;';
    echo '&lt;/div&gt;';
    echo '&lt;/div&gt;';
  </code></pre>