$(document).ready(function() { // #login-box password field $(\'#password\').attr(\'type\', \'text\'); $(\'#passwo
Simply this:
this.type = 'password';
such as
$("#password").click(function(){ this.type = 'password'; });
This is assuming that your input field was set to "text" before hand.