密码栏位标签 [英] Label for password field

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

问题描述

<input type="text" value="useraname" />
<input type="password" value="password" />

我正在使用jQuery来使行内标签在单击/焦点时消失.密码照常显示多头,但我想知道是否有可能以某种方式在密码字段内将"Password"标签显示为文本(而不是••••)?

I'm using jQuery to make the inline labels disappear on click/focus. Password shows bulls as usual, but I wonder if its possible somehow to show "Password" label as text (instead of ••••) inside the password field?

编辑后添加:我希望用户键入的密码被隐藏!!

Edited to add: I want the user-typed password to be hidden ofcourse!.

谢谢

推荐答案

有用于此的插件.例如,请参见 labelify

There are plugins for that. See labelify for example

这篇关于密码栏位标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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