SyntaxFix
Write A Post
Hire A Developer
Questions
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.