Author: | UsamaAhmed212 |
---|---|
Views Total: | 2,887 views |
Official Page: | Go to website |
Last Update: | January 10, 2023 |
License: | MIT |
Preview:

Description:
A JavaScript library for creating a user-friendly feature-rich international telephone input with flags and dial codes.
It enables users to quickly select their country and input their phone number in the correct format, improving the user experience and reducing the chances of errors. The library also has a built-in phone number validator based on Regex, which automatically checks for the validity of the entered number.
How to use it:
1. Load the required stylesheet international-telephone-input.css and JavaScript international-telephone-input.js in the document.
<link rel="stylesheet" href="international-telephone-input.css" /> <script src="international-telephone-input.js"></script>
2. Create a tel
input field on the page and the library will take care of the rest.
<input type="tel" name="phone">