I have an <input type="text">
element, which I have decided to use instead of type="number"
so that I can format currency with commas, and I would like to use the number keyboard for my mobile users. The existing solutions I have found require a pattern="[0-9]*"
, but I need a pattern for my validation as well.
How can I use the number keyboard without changing the pattern
of my input or the type
?