I have a website that contains a form that allows users to enter credit card information. The fields for the card number, issue number, CVC number and the amount they want to deposit use an HTML input field of type "number".
The updated Mobile Safari, which ships with iOS 5, automatically inserts commas into numbers in the number input boxes. This not only looks silly in the CC number, but also violates my verification. Is there any way to stop this?
The sole purpose of using a “number” as opposed to a “text” is to force iOS and Android to display only a keyboard with numbers, not a full keyboard.
I tried using text input with a pattern set to "[0-9] *". This calls up the keyboard of numbers on iOS, but not on Android. It also does not allow you to enter a number with a decimal point.
I would be very grateful for any suggestions :)
thanks
user1003623
source share