rajaramtt / jquery-input-mask-phone-number Goto Github PK
View Code? Open in Web Editor NEWjquery-input-mask-phone-number.js - A simple, easy jquery format phone number mask library
jquery-input-mask-phone-number.js - A simple, easy jquery format phone number mask library
After initiating this call, the tab out functionality is no longer working
$('#txtPhone').usPhoneFormat({
format: '(xxx) xxx-xxxx'
});
Sorry, it was my mistake.
Trying this library out for robustness. After entering in a number, if someone hits their arrow key back to a "-" and hits delete this library deletes the "-".
Instead hitting delete should gracefully shift the numbers back without affecting the dashes (minus removing them if there are not enough numbers.
You can no longer paste a number into the input field after 1.0.9
Special characters like !@#$$%%$^ user can enter these characters
It doesn't work in Chrome for Android. it doesn't apply masking at all.
Using FF go to: https://jsfiddle.net/1kbat1nb/
Enter a complete number. Then try to delete numbers.
result: it doesn't let you delete the first 6 numbers.
expected outcome: you should be able to edit the numbers.
The current program has an issue where validation checks are being done after input. So i can type characters as well as numbers and go over the normal phone number limit.
However, using this version 1.0.11 posted at npmjs.com works flawlessly.
I can see comparing the 2 files that the difference is on line 33 and 48
33$(this).on('keyup', function (e) {
most recent on github
33$(this).on('keydown touchend', function (e) {
version 1.0.11 posted at npmjs.com
48$(this).on('keyup', function (e) {
most recent on github
48$(this).on('keydown touchend', function (e) {
version 1.0.11 posted at npmjs.com
The only downside i noticed when using 1.0.11 on npmjs is that ctrl + v to paste numbers won't work however, right click and paste still does.
Ideally you might wan't to handle both issues somehow.
Many people enter their phone number including the initial 1 (ex: 1-212-123-4567)
If someone does that it will only take the first 10 digits and drop the last digit.
Is there any way to set it to remove the initial 1 if they start the number with 1?
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.