title: Changing the type of an input field using jQuery (text -> password)
body: <p>I am trying to change type of input, specifically after click into input change <strong>type="text" to change="password"</strong>.</p>
  
  <p>I don't know why, but I can't to add the option <strong>type="password"</strong> as attribute to input.</p>
  
  <pre><code>        $('input#id_reg_pass').removeAttr("type"); #this works, type="text" is removing
          $('input#id_reg_pass').attr('type', 'password'); #problem, this not works
          $(this).addClass('exampleText').val($(this).attr('title'));
  </code></pre>
  
  <p>Haven't someone similar problem? I'll glad for every hint... 
  Thank you</p>