开发者

Simple Javascript coding for input text to password text

开发者 https://www.devze.com 2023-03-19 13:14 出处:网络
I have following HTML code. writer input field is text filed. but I want to pretend that one is password field. whenever someone type anything, one key will display as * only, as you know how password

I have following HTML code. writer input field is text filed. but I want to pretend that one is password field. whenever someone type anything, one key will display as * only, as you know how password field show; additi开发者_JS百科onally the entry at writer input field should be populate in holder value which field is hidden. Can you please write in simple java script coding.

 Password: <input type="text" id="writer" value=""/><input type="hidden" id="holder" value=""/>

This one show http://www.symplik.com/password.html, whatever we enter, it doesn't look good, it should be all * only when you start typing in it.


Simply use <input type="password" id="txtPassord" value=""/>

0

精彩评论

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