If you work with the new HTML5 input types, read @trzewiczek’s tip: http://codetunes.com/2013/digit-is-not-a-number/ …
@porada @trzewiczek Define “mobile” :) `inputmode=numeric` should work. `pattern=[0-9]+` can be used as a fallback on some devices.
-
-
@mathias iOS and the current Chrome for Android. I asked, because `inputmode=numeric` sounds straightforward, and the `pattern` not so much. -
@porada Using `pattern` to force a specific keyboard type is a hack. `inputmode=numeric` is the way to go if you want a numeric keyboard. - 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.