Comments (4)
It appears you should be using inputmode="numeric"
and not type="number"
.
type="number"
will probably cause your input to be resolved as a floating point number, which is most certainly not what you want.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input
from jquery.payment.
@Fishrock123 Thanks for the tip this is good to know. Unfortunately, inputmode="numeric"
is not respected by mobile webkit browsers. I just tried it. Looks like a patch for type="number"
is still in order?
from jquery.payment.
type="tel"
appears to work, and brings up the full-size number-pad on my phone. This might be a better option.
from jquery.payment.
This appears to be a webkit vs firefox issue a type="number"
and formatCardNumber
works fine on firefox but not on desktop and mobile chrome or safari.
from jquery.payment.
Related Issues (20)
- Missing spaces HOT 1
- Execute formatting HOT 1
- Some Visas Wrongly Categorized As Visa Electron HOT 2
- Stripe Checkout HOT 2
- MS Edge Mobile: Expiry input problems HOT 4
- The spaces don't show up on Chrome 55 >= HOT 1
- Japanese iOS users IME bug HOT 2
- publish to npm HOT 1
- Can't subscribe to all input events HOT 1
- validateCardExpiry always returns false HOT 3
- we can input the English character in your demo on IE. But in fact i think it should limit that users can just only input numbers HOT 1
- '4222 2222 2222 2' is "valid" HOT 2
- Please allow CVC be longer then 4 digits HOT 3
- Card number formatting breaking with copy and paste. HOT 1
- Get input class on pre-filled field HOT 1
- Production Payment issue for American Express Card with 4 digits CVC code. HOT 1
- Mastercard 2 BIN series acceptance HOT 2
- Card number formatting strange behavior HOT 3
- Woocommerce: Samsung Galaxy S7 keeps popping up random words HOT 1
- Expierd date can be 00/00 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery.payment.