title: Alternative to jquery live that can work
body: <p>I have this simple code. <a href="http://jsfiddle.net/borth/BmEZv/" rel="noreferrer">http://jsfiddle.net/borth/BmEZv/</a>
  If you click on the link once, it works fine. If you click on it a second time, it doesn't work. Due to the html being loaded into html after the DOM has loaded, I've tried .on, .bind, .delegate, and .live. No of them work except for .live which is being deprecated (I'm using jquery 1.7.2).</p>
  
  <p>Can someone explain why .live is the only function that works and why the others don't work (or if I am doing something wrong with the other functions).</p>
  
  <hr>
  
  <pre><code>$(document).ready(function(){
    $(".OpenPopup").bind('click', function(e){
        alert('test .OpenPopup');
        // do something
        return false;
    });
    $(".EditIcon").bind('click', function(){
        alert('test .EditIcon');
        // do something
        $("#ABC").html('&lt;div class="EditIcon OpenPopup" pwidth="800" pheight="500" ptitle="EditText"&gt;click here again&lt;/div&gt;');
    });
  });
  
  
  &lt;div id="ABC"&gt;&lt;div class="EditIcon OpenPopup" pwidth="800" pheight="500" ptitle="EditText"&gt;click here&lt;/div&gt;&lt;/div&gt;
  </code></pre>