Home  >  Article  >  Web Front-end  >  Use asterisks in javascript to indicate the implementation code of pre-entered content_jquery

Use asterisks in javascript to indicate the implementation code of pre-entered content_jquery

WBOY
WBOYOriginal
2016-05-16 18:12:30924browse

If it is 14, 14 is used before the user enters to imply that the user can enter 14 characters). When the user starts to enter data, the * is replaced one by one. After entering several characters, several * are replaced. After the input is completed, the text box There is only information entered by the user. Just such a function still tortured me for a while. Alas, my JS level is still too bad, so I posted a post for help. Later, with the enthusiastic help of CSDN netizen huangwenquan123, I finally solved the problem. Now I post the code directly. Hope it will be helpful to friends who need this:

Copy code The code is as follows:



Statement:
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