Originally written by Oliver Storm, Stefan Huissel( http://www.mysrc.de ) to provide iPhone like password input.
Improved on it a little bit by adding a few options:
- color, fontStyle : set the hint’s text to this color and style
- retain : whether to clear the field on focus or on keydown
<script type="text/javascript" src="jquery.ipass-1.1.js"></script>
And execute the code:
$("div#demo1 input[name='password']").iPass();
- color, fontStyle – set the hint’s text to this color and style
- retain : whether to clear the field on focus or on keydown
Eg,
$("div#demo1 input[name='password']").iPass({ retain : false, color : "blue"});