2 Input Mask plugin extensions
3 http://github.com/RobinHerbots/jquery.inputmask
4 Copyright (c) 2010 - 2014 Robin Herbots
5 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
9 When using this extension make sure you specify the correct url to get the masks
11 $(selector).inputmask("phone", {
12 url: "Scripts/jquery.inputmask/phone-codes/phone-codes.json",
13 onKeyValidation: function () { //show some metadata in the console
14 console.log($(this).inputmask("getmetadata")["name_en"]);
21 $.extend($.inputmask.defaults.aliases, {
23 url: "phone-codes/phone-codes.json",
24 mask: function (opts) {
27 validator: function () { return false; },
40 success: function (response) {
45 maskList.splice(0, 0, "+p(ppp)ppp-pppp");