Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 597 Bytes

README_phone.md

File metadata and controls

25 lines (19 loc) · 597 Bytes

phone extensions

In the inputmask.phone.extensions you can find the abstractphone alias which is like the base for the phone aliases. In the extra/phone-codes folder you find some implementations.

You need to include the inputmask.phone.extensions.js and the phonecodes from within the extra folder to use the phone alias.

$(selector).inputmask("phone", {
  onKeyValidation: function () { //show some metadata in the console
    console.log($(this).inputmask("getmetadata")["city"]);
  }
});

Aliases

  • phone
  • phonebe
  • phonenl
  • phoneru
  • phoneuk
  • phoneca
  • phoneus