robinherbots / inputmask.phone Goto Github PK
View Code? Open in Web Editor NEWPhone alias for Inputmask
License: MIT License
Phone alias for Inputmask
License: MIT License
Hi, Robin!
You've created an amazin plugin. But I can't to make it work. The problem is that the it's impossible to type an Armenian counry code 374 for example. Type 3 - 7 and the third "0" added automatically. When delete the digits - 0 is deleteng with 7 and only 3 stays.. Would be great if you could pay it some attention! Thanks in advance!
Hello !
I'm looking for a mask able to manage a landline phone number, knowing that I don't have more informations about the user location that the country.
ex a number can be
67 58 69 64
or 2 589 64 89
I tried with this one: 9[9]-99[9]-99-99 but doesnt work.
Any idea ?
Thanks for advance for you reply
Thomas
When using autofill, the very first mask from the sorted list of phoneCodes is substituted +1(242)###-####
https://jsfiddle.net/aradul/eu3x2g18/
Steps to play back:
+7(916)000 00 00
The result will be as follows
+1(242)___-____7____
Even if you force countrycode: '7', the very first mask from the sorted list is still substituted, without taking into account the countrycode value.
The mask for France should be +33-#-##-##-##
instead of:
mask: "+33(###)###-###",
cc: "FR",
cd: "France",
desc_en: "",
name_ru: "Франция",
desc_ru: ""
Hello! Thank you for your plugins!
I'm trying to upgrade to the last version of plugins.
I included jquery.inputmask.js
, inputmask.phone.extensions.js
, /phone-codes/phone.js
Html is <input type="text" class="mask_phone" value="">
And jquery code is $("input.mask_phone").inputmask("phone");
Everything works fine, but the mask in the phone field is always visible!
It doesn't seem quite right. It has to show only on hover. And if I enter a value and then delete it, then everything becomes correct.
See the video:
https://recordit.co/KcabM4nFmD
When I try to fill input with German format of phone number, I can't do it.
For example: +49 30 901820
When I put it in input, it changes to +40-93-090-1820
I don't know how to fix it.
Kazakhstan phone number show as Russia
Hello,
I use Ubuntu 16.04, FireFox 60.0.2(64bit) and I have a next source code for using phone inputmask
HTML
JS
$(this).inputmask({
alias: "phone",
countrycode: "7"
});
After loading a page I can see the element without a mask(placeholder). After I have got a focus on the element I can see a "phone" as word in placeholder of element, but I can't enter any characters into the element. But I need to have a mask or masks for selected country. Inform me please, how i can to do it.
When I use a static mask such as
mask: ['+9(999) 999-9999', '+999 99-99-9999', '+999 99-999-999', '+99(999)999-99-99']
in this case I haven't a any problems. Help me please. Thanks.
P.S. I have included a next js files:
inputmask.phone.extensions.js
phone.js
jquery.inputmask.js
jquery.inputmask.bundle.js
Version is the last(4.****).
Hello!
Thank you for this library!
But, the index.js
file, provided by the 1.0.3
version of he package contains an incorrect import statement.
It is:
module.exports = require("./dist/inputmask/inputmask.phone.extensions");
However, it should be:
module.exports = require("./dist/inputmask.phone/inputmask.phone.extensions.js");
The workaround is to import the target module directly:
import 'inputmask.phone/dist/inputmask.phone/inputmask.phone.extensions';
Lines 57 to 59 in 16f29ef
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.