Implementation Code _ jquery

Source: Internet
Author: User
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:


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.