In a WEB project, there is a special text box. The customer needs to be realistic. Before entering data in that text box, use an asterisk (*) indicates the information to be entered (the number of data digits to be entered in the text box is known. If it is 14 characters, 14 characters are used to indicate that the user can enter 14 characters ), when you start to input data, replace * with a few characters, and then replace * with a few characters. After the input, only the information entered by the user is displayed in the text box. I am still suffering from such a function for a while. Ah, the JS level is still too good, so I posted a post for help. Later, with the help of huangwenquan123, A CSDN user, I have fixed this problem. Now I am posting the Code directly, hoping to help my friends who need it:
The Code is as follows: