Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to change password dots to to Asterisk [duplicate]

Tags:

html

css

I am creating the password field, and I have to use Asterisk in place of password dots. currently, I am using this

<input type="text" style="-webkit-text-security: square;" />

but when I use Asterisk in place of the square then it's not working. Is there any solution for that.

like image 355
Asmita Nikhare Avatar asked Apr 25 '18 09:04

Asmita Nikhare


1 Answers

You need to specify password in your input's type field. Like this:

<input type="password" style="-webkit-text-security: square;" />

See here for more information: https://www.w3schools.com/html/html_form_input_types.asp


You might also want to see:

  • this answer: Changing the symbols shown of a HTML password field
  • and this answer: Replace text with stars (*) in html with directives in angularjs
like image 173
Adriano Avatar answered Sep 17 '22 17:09

Adriano