问题
Can any one suggest to build a password field that behaves the way passwords are entered using iphone?
When I enter some character, it should be visible to the user for a second and then it should turn to *. But I need to get the value from the field when I submit the form.
Its an ExtJs text field. Is there any plugins available for this? Any help on this will be helpful.
回答1:
Probably, this can help you:
http://blog.decaf.de/2009/07/iphone-like-password-fields-using-jquery/
回答2:
Check out this Fiddle
Change textfield to stars like iPhone
Note: this solution is NOT complete and NOT optimal, for example you will have to handle Delete and Backspace buttons manually. You might find some plugin to do it in other way, but this is the simplest way to do it JavaScript I guess.
来源:https://stackoverflow.com/questions/7304823/password-masking-as-in-mobiles-using-js