有没有一种已知的方法来使用密码类型创建文本区域? [英] Is there a known way to have a textarea with the password type?

查看:123
本文介绍了有没有一种已知的方法来使用密码类型创建文本区域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我目前正在尝试获取一个具有密码类型的文本区域(实际上就像一个输入).

So I am currently trying to get a textarea with the password type (actually like an input).

我已经尝试创建自己的字体(只有黑点),但是有点难...

I've try to create my own font (with only black points) but it's a bit hard...

我尝试了一些Jquery,但这也不是令人满意的.

I've tried some Jquery but that was not concluant either.

感谢您的帮助.

推荐答案

此帖子: 如何使Textarea像密码字段一样起作用

使用keydown事件提及将框中的内容替换为所需的内容.当然,您需要同时将输入的文本存储在某些javascript变量中.

mentions using the keydown event to replace things in the box with whatever you want. Of course, you'll need to store the entered text in some javascript variable at the same time.

这篇关于有没有一种已知的方法来使用密码类型创建文本区域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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