igorescobar / jQuery-Mask-Plugin

A jQuery Plugin to make masks on form fields and HTML elements.
http://igorescobar.github.io/jQuery-Mask-Plugin/
Other
4.77k stars 1.42k forks source link

Automatically enter the required numbers/letters? #803

Open Zaurius opened 9 months ago

Zaurius commented 9 months ago

How can I make the placeholder always appear as I type? For example, with this placeholder +884() -__-___, so that the first 4 characters are always visible and are automatically filled in when the client starts entering a phone number.

Example from the Internet (sorry for the video quality): https://www.awesomescreenshot.com/video/22214232?key=1f59af7861fa7defa0525601d8aebf33

As you can see from the video, the number 8 (placeholder) has already been entered and the client does not need to dial the country code, but simply add the phone number.