Gihub
I'm using this library in my project it will help and International Telephone Input. This is also very helpful to you.
Features:-
1.Automatically select the user's current country using an IP lookup
2.Automatically set the input placeholder to an example number for the selected country
3.Navigate the country dropdown by typing a country's name, or using up/down keys
4.Handle phone number extensions
5.The user types their national number and the plugin gives you the full
standardized international number
6.Full validation, including specific error types
Retina flag icons
7.Lots of initialisation options for customisation, as well as public methods
for interaction