Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a known way to have a textarea with the password type?

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...

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

Thanks for your help.

like image 679
Melki Avatar asked Apr 17 '13 10:04

Melki


People also ask

How do you make a password appear as dots in HTML?

The <input> tag with a type="password" attribute creates a text field where users can securily enter a password. As characters are entered, they are replaced by a dot ("•") or asterisk ("*") symbol, depending on the browser.

Does textarea have type attribute?

The <textarea> element does not have a type attribute. The HTML <textarea> element represents a multi-line plain-text editing control, and is useful when you want to allow users to enter a sizeable amount of free-form text, for example a comment on a review or feedback form. Learn more: HTML Living Spec: textarea.

How do I show password in password field?

Right-click the password field and click Inspect Element. A gray bar will appear with the password field highlighted. Press Alt+M or click on the icon shown below to open the Markup Panel. It will show you the code for the password field.

Can textarea have default value?

The defaultValue property sets or returns the default value of a text area. Note: The default value of a text area is the text between the <textarea> and </textarea> tags.


2 Answers

This post: How to make a Textarea act like a password field

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.

like image 42
Lawson Avatar answered Oct 15 '22 11:10

Lawson


You can use CSS to blur the text instead.

style="color: transparent;text-shadow: 0 0 8px rgba(0,0,0,0.5);"
like image 67
PRConnect Avatar answered Oct 15 '22 11:10

PRConnect