Skip to content
jQuery plugin for the phone-validator.net API
Branch: master
Clone or download
unknown
unknown finalize
Latest commit 52c6b2a Mar 2, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md finalize Mar 2, 2016
jquery.phone-validator-net.js finalize Mar 2, 2016
test.html lil changes Feb 25, 2016
test.js lil changes Feb 25, 2016

README.md

jquery-phone-validator-net

A small library providing a wrapper for api.phone-validator.net for jQuery

Installation

Download zip, extract and embed jquery.phone-validator-net.js to your HTML. This Plugin needs jQuery!

Usage

See test.js and test.html

// Init only once
$.validatePhone(APIKEY);

// OnClick
$("#submit").click(function () {
  $("#phone").validatePhone(function (response) {
    console.log(response);
  }, countryCodeIso2, mode, locale)
})

//response looks like that:
  /*
    status	VALID_CONFIRMED, VALID_UNCONFIRMED, INVALID or error: DELAYED, RATE_LIMIT_EXCEEDED, API_KEY_INVALID_OR_DEPLETED
    linetype	FIXED_LINE, MOBILE, VOIP, TOLL_FREE, PREMIUM_RATE, SHARED_COST, PERSONAL_NUMBER, PAGER, UAN, VOICEMAIL
    location	geographical location (city, county, state)
    countrycode	two letter ISO 3166-1 country code
    formatnational	phone number in national format
    formatinternational	phone number in international format
  */

});

Release History

  • 0.1.0 Initial release
You can’t perform that action at this time.