title: Click event is not working after replacing the elements
body: <p>I got this code:</p>
  
  <pre><code>$(function () {
      $('#or').click(function () {
          $("#m0").html('&lt;input type="text" class="highlight" name="test1"/&gt;');
      });
  });
  </code></pre>
  
  <p>Its working fine and it does replace the:</p>
  
  <p><code>&lt;label&gt;&lt;input type="radio" id="or" name="type" value="1"/&gt;Click me&lt;/label&gt;</code></p>
  
  <p>with the text input, the problem appear when I click on <code>#or</code> click somewhere else (then it is replacing with original content), and when I add the original content back, it doesn't work.</p>
  
  <p>This is the code I used to replace the <code>text input</code> on replaced <code>#m0</code> with the original one:</p>
  
  <pre><code>$(function () {
      $('.m').click(function () {
          $("#m0").html('&lt;label&gt;&lt;input type="radio" id="or" name="type" value="1"/&gt;Click me&lt;/label&gt;');
      });
  });
  </code></pre>
  
  <p>So, to be sure you did understand me:</p>
  
  <p>The original content is:</p>
  
  <p><code>&lt;label&gt;&lt;input type="radio" id="or" name="type" value="1"/&gt;Click me&lt;/label&gt;</code></p>
  
  <p>then I use this to replace the above with text input:</p>
  
  <pre><code>$(function () {
      $('#or').click(function () {
          $("#m0").html('&lt;input type="text" class="highlight" name="test1"/&gt;');
      });
  });
  </code></pre>
  
  <p>and then... I use this code to restore back the original content:</p>
  
  <pre><code>$(function () {
      $('.m').click(function () {
          $("#m0").html('&lt;label&gt;&lt;input type="radio" id="or" name="type" value="1"/&gt;Click me&lt;/label&gt;');
      });
  });
  </code></pre>
  
  <p>And finally when:</p>
  
  <p><code>&lt;input type="text" class="highlight" name="test1"/&gt;</code></p>
  
  <p>is replaced with:</p>
  
  <p><code>&lt;label&gt;&lt;input type="radio" id="or" name="type" value="1"/&gt;Click me&lt;/label&gt;</code></p>
  
  <p>The click event doesnt work anymore.</p>