A jQuery plugin for entering international telephone numbers. It adds a flag dropdown to any input, which lists all the countries and their international dial codes next to their flags.
Demo
Features
In the country dropdown you can navigate by typing, or using the up/down keys
Selecting a country from the dropdown will update the dial code in the input
Typing a different dial code automatically updates the displayed flag
Country names in the dropdown also include localised versions in brackets
Lots of initialisation options for customisation, as well as public methods for interaction
Examples
Validation:
Use Google's libphonenumber for validation
Lookup user's country:
Use IP address lookup to set the default country to the user's country
Country sync:
Access the country data to create a separate country dropdown for an address form, and then listen for change events to keep the two dropdowns in sync