Home > Web Front-end > HTML Tutorial > How to make HTML input always display a fixed length asterisk? _html/css_WEB-ITnose

How to make HTML input always display a fixed length asterisk? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:57:20
Original
1709 people have browsed it

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?


Reply to the discussion (solution)

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.

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.

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?
Understand Reference
http://bbs.csdn.net/topics/230024277


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?
Got it Reference
http://bbs.csdn.net/topics/230024277
Okay, thank you.
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template