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.
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.
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.
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.
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.
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.
You can use CSS to blur the text instead.
style="color: transparent;text-shadow: 0 0 8px rgba(0,0,0,0.5);"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With