title: onblur doesn't work when i clone input
body: <p>I want to change input type text to password. But it doesn't work in ie8. I found a solution; clone and replace input but onblur doesn't work after clone.</p>
  
  <p>The debugger doesn't break OnBlur function. Can somebody show me?</p>
  
  <p>Here is js code : </p>
  
  <pre><code>$(document).ready(function () {
      var input = document.getElementById("Password");
      var input2 = input.cloneNode(false);
      input2.id = 'password1';
      input2.type = 'password';
      $('#Password').focus(function () {
         input.parentNode.replaceChild(input2, input);
         input2.focus();
      });
      $('#password1').blur(function () {
          if ($(this).val() == '' || $(this).val() == Passwordtxt) {
              document.getElementById("password1").setAttribute("type", "text");
              $(this).val(Passwordtxt);
          }
      });
  });
  </code></pre>