3 ms·
Stupid question. If you don't use input[number] on such fields, how do you get a number keypad input on mobile keyboards for them? It's annoying, as a user, to
by triceratops 4y ago
Stupid question. If you don't use input[number] on such fields, how do you get a number keypad input on mobile keyboards for them? It's annoying, as a user, to switch to numbers and use the tiny row of numbers to enter credit card info.
- xboxnolifes 4y agotype=text inputmode=numeric
- triceratops 4y agoThank you!
- dhritzkiv 4y agoThis. Further, for credit cards, you can add `autocomplete="cc-number"` to the input and it will provide platform-specific UI for pre-filling the credit card number.
- deleted 4y ago[deleted]
- neon_electro 4y agoNot a stupid question! I believe CSS Tricks has your back. https://css-tricks.com/finger-friendly-numerical-inputs-with-inputmode/ https://css-tricks.com/finger-friendly-numerical-inputs-with...