title: How to add jQuery event to all current and future elements?
body: <p>I just noticed that <code>live()</code> is already deprecated in jQuery. I have quick question (just to make sure which method is the most efficient, the fastest and up-to-date). I've got <code>myfunction()</code> and I want to <code>bind()</code> it to all current and future elements with <code>attr("title") == 'x'</code>.</p>
  
  <p>Is this what I should use:</p>
  
  <pre><code>jQuery("???").bind("mouseup", myfunction);
  jQuery("???").bind("keyup", myfunction);
  </code></pre>
  
  <p>Or this:</p>
  
  <pre><code>jQuery("???").delegate("???", "mouseup", myfunction);
  jQuery("???").delegate("???", "keyup", myfunction);
  </code></pre>
  
  <p>Or this:</p>
  
  <pre><code>jQuery("???").on("mouseup", "???", myfunction);
  jQuery("???").on("keyup", "???", myfunction);
  </code></pre>
  
  <p>I'm also having problem specifying correct selector(s) - because some of them allow to attach event to one thing (like body or document) and they allow second selector.</p>