Password masking as in mobiles using js

无人久伴 提交于 2019-12-21 20:23:18

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!