News for hackers. Stuff that matters.
Re:The number input is the worst input by triceratops on Thursday September 15, 2022 @03:10PM (#32857049)
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.
Re:The number input is the worst input by neon_electro on Thursday September 15, 2022 @03:35PM (#32857398)
Not a stupid question! I believe CSS Tricks has your back.

https://css-tricks.com/finger-friendly-numerical-inputs-with...

Re:The number input is the worst input by xboxnolifes on Thursday September 15, 2022 @03:22PM (#32857238)
type=text

inputmode=numeric

Re:The number input is the worst input by dhritzkiv on Thursday September 15, 2022 @03:26PM (#32857290)
This.

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.

Re:The number input is the worst input by triceratops on Thursday September 15, 2022 @03:26PM (#32857281)
Thank you!