Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change text to dots in text field with CSS/Javascript

Is there a way to "mask" the input of a text field to act like a password field (to show dots instead of text) without making the text box of type password? We prefer CSS than javascript...

any ideas?

like image 961
andreas Avatar asked Jul 18 '26 02:07

andreas


1 Answers

This may be the answer you were looking for:

-webkit-text-security: disc;
-moz-text-security: disc;
text-security: disc;
like image 157
graemeboy Avatar answered Jul 19 '26 15:07

graemeboy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!