International mask for entering a phone number. Includes 201 countries with unique mask and phone number prefix + country flag.
Simple setup, all you need to do is create an input tag and specify the id of the element. For example:
<input id="phone" />
And in the scripts you need to create an instance of the InternationalPhoneMask class:
document.addEventListener('DOMContentLoaded', () => {
new InternationalPhoneMask('phone');
});
- At the moment the source code of the script is here
- You can get the styles here
- And you can get a picture of the flags here
Additional description of the class and its options in the development... 😴
💲 You can donate any amount to a cryptocurrency wallet to support the project.
USDT coin, TRC20 network, address: TNm4cjXDPu4uxjXf7Te9UQYZA5oENmMJdE