Home >Web Front-end >HTML Tutorial >How to make HTML input always display a fixed length asterisk? _html/css_WEB-ITnose
Everyone, in order to prevent others from knowing the number of digits in your password, you usually define the displayed part as a fixed-length asterisk. How do you implement input?
I was also drunk when I saw this question from upstairs. Ask for a solution.
Tested. It turns into an asterisk after typing.
maxlength="6" fixed maximum length.
The fixed length I am talking about does not mean that you can only enter 6 digits. In fact, you can enter 18 digits, but only 6 asterisks are displayed. Do you understand what I mean?
maxlength="6" Fixed maximum length.
maxlength="6" Fixed maximum length.
The fixed length I am talking about does not mean that you can only enter 6 digits. In fact, you can enter 18 digits, but only 6 asterisks are displayed. Do you understand what I mean?
maxlength="6" fixed maximum length.