需要“密码"密码文本框中的文本(输入标签) [英] Need "password" text in password textbox ( input tag )

查看:67
本文介绍了需要“密码"密码文本框中的文本(输入标签)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用密码文本框..in,我想将文本显示为密码,然后如果用户可以单击该文本框,则意味着密码文本将被清除,并且键入的文本必须在星号..

我在下面给出了输入标签和示例图像链接...

Am using password textbox ..in that i want to display the text as Password and after that if user can click that textbox means the password text will clear and typed text must be in asterix ..

i give the input tag and sample image link below ...

<input name="txtPassword" type="password" id="txtPassword" /></li>


http://www.flickr.com/photos/40919098@N07/6945740749/

在此先感谢...


http://www.flickr.com/photos/40919098@N07/6945740749/

thanks in advance...

推荐答案

如果我找对了,那么代码可以帮助您:
if i am getting you right then the code helps you:
<input type="password" name="password" onclick="this.value='';" onfocus="this.select()" onblur="this.value=!this.value?'password':this.value;">
                                                                                value="password" id="password" /></input>




我从下面的链接中获得了解决方案

http://forums.asp.net/t/1069447.aspx [
Hi,

i got the solution form the link below

http://forums.asp.net/t/1069447.aspx[^]


这篇关于需要“密码"密码文本框中的文本(输入标签)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆