title: Transform input type text to password
body: <p>I want to change the input type to password when I click on it. I tried this:</p>
  
  <pre><code>&lt;input name="pin" id="cp_serv" type="text" class="pin_v" value="Insert PIN Please" onclick="this.value='';$(this).attr('type','password');"/&gt;
  </code></pre>
  
  <p>I tried to use the jQuery function <code>attr</code> to change this on the <code>click</code> event, but nothing is happening.</p>
  
  <p>Is this the right way to do it or is this possible?</p>