A jQuery plugin for entering and validating international telephone numbers.
GitHub International Telephone Input
It adds a flag dropdown to any input, detects the user’s country, displays a relevant placeholder and provides formatting/validation methods.
$("#phone").intlTelInput();