How to change the masking character of a password field? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to change the masking character of a password field?

Is it possible to change the masking character of a password input field in HTML from its default value . (bullet) to something else like * (asterisk), # (hash), x etc.? I guess it will involve JS but not sure how to go about it. Any suggestions/solutions would be much appreciated.

27th Feb 2024, 3:10 PM
Tharun Chandramohan
Tharun Chandramohan - avatar
7 Answers
29th Feb 2024, 10:20 PM
IAmSupreme
IAmSupreme - avatar
+ 2
IAmSupreme great that's working! Thanks a lot ๐Ÿ‘
1st Mar 2024, 2:48 AM
Tharun Chandramohan
Tharun Chandramohan - avatar
+ 1
KnightBits I used your same code you gave above ๐Ÿ‘†
28th Feb 2024, 3:00 AM
Tharun Chandramohan
Tharun Chandramohan - avatar
+ 1
KnightBits alright I'll try that, thanks again ๐Ÿ‘
28th Feb 2024, 12:16 PM
Tharun Chandramohan
Tharun Chandramohan - avatar
+ 1
Tharun Chandramohan you're welcome
2nd Mar 2024, 5:57 PM
IAmSupreme
IAmSupreme - avatar
0
@KnightBits I tried the same code you gave but it still comes in ... and not ***. Did it work for you?
27th Feb 2024, 7:14 PM
Tharun Chandramohan
Tharun Chandramohan - avatar
0
Hggc
28th Feb 2024, 11:55 PM
ู…ุญู…ุฏ ุงู„ุฌู„ุงู„
ู…ุญู…ุฏ ุงู„ุฌู„ุงู„ - avatar