ソースを参照

update readme

Robin Herbots 12 年 前
コミット
2e94ae9534
1 ファイル変更12 行追加0 行削除
  1. 12 0
      README.md

+ 12 - 0
README.md

@@ -659,6 +659,18 @@ $(document).ready(function(){
 });
 ```
 
+## phone extensions
+Uses the phone mask definitions from https://github.com/andr-04/inputmask-multi
+
+```javascript
+ $(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")["name_en"]);
+                } 
+  });
+```
+
 ## other extensions
 
 An ip adress alias for entering valid ip-addresses.