title: jQuery live() failing with jQuery UI datepicker
body: <p>Ok, I'm trying to use the FaceBox() plugin for jQuery along with the jQuery UI datepicker().</p>
  
  <p>I've got it to bind to the lightbox'd inputs on the first appearance of the lightbox, but it's not working afterwards.</p>
  
  <p>I'm doing the following:
  <code><pre>
  $(function() { 
      $('.jQueryCalendar').live('click', function () {
              $(this).datepicker({showOn: 'both'}).focus();
      });
  });
  </pre></code></p>
  
  <p>When the lightbox closes, I'm re-appending it's content to the page (in order to not lose the content div), and this seems to be killing the live() call. [NB the re-appending takes place <em>after</em> the original content is destroyed]</p>
  
  <p>EDIT</p>
  
  <p>Ok, the live() event IS firing (thanks to Nick Craver for that), however the datepicker is no longer being shown. Does anyone have an idea why?</p>
  
  <p>EDIT #2</p>
  
  <p>Ok, the use of .html() to re-append causes the events to need rebinding, but the element to bind still has the class hasDatepicker, which messes with the datepicker() initialisation.</p>
  
  <p>To fix, simply user
  <code><pre>
  $(this).removeClass('hasDatepicker') .datepicker({showOn: 'both'}).focus();
  </pre></code></p>