I had found a good solution for numeric input on mobile devices but I lost it. It showed screenshots for android and iOS. It was almost perfect.
I found it from one of two sources, one of:
OH! I think this was it: https://css-tricks.com/everything-you-ever-wanted-to-know-about-inputmode/, specifically:
<input type="text" inputmode="decimal" />
Update 2023.01.20: another site prompted me to revisit. It appears currently that inputmode="numeric"
now does the expected thing on iOS (used to be numbers and a bunch of symbols, now just digits). numeric
and decimal
are in fact the same, except decimal
adds a (subtle) .
key.