开发者

Password masking as in mobiles using js

Can any one suggest to build a password field that behaves the way passwords are entered using iph开发者_JAVA技巧one?

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.


Probably, this can help you:

http://blog.decaf.de/2009/07/iphone-like-password-fields-using-jquery/


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜