SamWanekeya / 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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:JavaScript 68.1%Language:CSS 28.7%Language:HTML 3.2%