You are reading a single comment by @Velocio and its replies.
Click here to read the full conversation.
-
A quick question... did the small hack I just did force the numeric keypad in iOS?
The idea comes from here: https://developer.apple.com/library/ios/documentation/StringsTextFonts/Conceptual/TextAndWebiPhoneOS/KeyboardManagement/KeyboardManagement.html
To display a numeric keyboard, set the value of the pattern attribute to
[0-9]*
or\d*
.
@Velocio stack overflow seems to suggest that a submit with visibility:hidden;position:absolute might work.
Alternatively, for a normal text input on desktop but numeric keyboard on phones
<input type="tel">
might do the trick.