12 ms·
Unfortunately the number input is lacking and inconsistent. We’ve always fallen back to JavaScript validation.
by akurtzhs 2y ago
Unfortunately the number input is lacking and inconsistent. We’ve always fallen back to JavaScript validation.
- wahnfrieden 2y ago`type=text inputmode=numeric` (from other comment)
- 6510 2y agohttps://jsfiddle.net/gaby_de_wilde/1qh4cax7/ https://jsfiddle.net/gaby_de_wilde/1qh4cax7/ I'm trying to picture a room full of <s>people</s> developers agreeing letters are numbers too! Lets give the little people a slider but lets call it a range! I really feel like they are trolling. You start with a neat database table then you engage in an endless struggle trying to allow the user to edit a single row of it. It really feels like you are not suppose to do it. As if it was intended to be as annoying as possible.
- epolanski 2y agoAlso, many things that look like numbers shouldn't be encoded as such, e.g. credit cards or phone numbers, are not. E.g. any leading zeros get dropped out of phone number starting with a 0, very common.