Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 854 Bytes

README.textile

File metadata and controls

35 lines (22 loc) · 854 Bytes

jQuery iPass

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

Screenshot of the demo

To use:

<script type="text/javascript" src="jquery.ipass-1.1.js"></script>

And execute the code:

    $("div#demo1 input[name='password']").iPass();

The following are the possible options:

  • 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"});