Skip to content

SamWanekeya/Autoselect-user-s-country-and-validate-telephone-number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Autoselect user's country and validate telephone number

A jQuery plugin that autoselects user's country and validates international telephone numbers input, based on http://intl-tel-input.com

A jQuery plugin that autoselects the user's country using ipinfo.io and validates the phone number input using Google's liphonenumber libraries. The whole concept is based on International Telephone Input, a jQuery plugin for entering and validating international telephone numbers.

Features:

  • Auto select the user's current location (country) using an IP lookup (ipinfo.io)
  • Automatically set the input field placeholder to an example number that matches that of the autoselected country
  • Navigate the country dropdown by typing a country's name, or using up/down keys
  • Handle phone number extensions
  • The user types their national number and the plugin gives you the full standardized international number
  • Full validation, including specific error types
  • Retina flag icons