需要“密码"密码文本框中的文本(输入标签)
问题描述:
我正在使用密码文本框..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[^]