$(selector).inputmask("phone", {
url: "Scripts/jquery.inputmask/phone-codes/phone-codes.json",
onKeyValidation: function () { //show some metadata in the console
console.log($(this).inputmask("getmetadata")["city"]);
}
});
- phone
- phonebe
Specify the url to fetch the phone codes.
Specify the countrycode to help determine phonenumbers when pasting or with an initialValue.