title: Using jQuery live() to initialize plugins?
body: <p>Using jQuery, what's the best way to automatically initialize a plugin on all current and future elements of a specific class?</p>
  
  <p>For example, say I want all <code>&lt;input type="text" class="datepicker" /&gt;</code> elements to have the <a href="http://jqueryui.com/demos/datepicker/" rel="noreferrer">jQuery UI Datepicker</a> plugin, including any I might create at runtime.</p>
  
  <p>Essentially, I want to do something like this:</p>
  
  <pre><code>$('.datepicker').live('create', function() {
      $(this).datepicker();
  });
  </code></pre>
  
  <p>But, of course, there isn't a <em>create</em> event I can use.</p>