how to change normal charater to password char by jquery?
<p>Suppose I have a textbox and I want that when the user types inside it then each character will be converted to a password symbol after 1 sec by jQuery.</p>

<p>The same effect that we see on modern smart-phones when we type into password textboxes.</p>

<p>Does anyone have any suggestions? I know how to capture the key press and get the character user typed.</p>

<pre><code>&lt;input type="text" id="username" name="username" /&gt;
&lt;script type="text/javascript"&gt;
$("#username").keypress(function(event){   

// Get the keypress value
// ...?

var c = String.fromCharCode(e.which);

}

});
&lt;/script&gt;
</code></pre>
