1

I've got an input that holds a valuta number. With <input pattern="[0-9]*" /> I was able to force the numeric keyboard to show up on mobile phones. But I want to add the option to select a comma, preferably in the empty bottom left corner.

Is this at all possible?
If this need a javascript or jquery solution, that's ok.

I've tried:

<input type="number" id="valuta" pattern="[0-9,]*" placeholder="0,00" step="0.01" />
<input type="text" id="valuta" pattern="[0-9,]*" placeholder="0,00" />
<input type="tel" id="valuta" pattern="[0-9,]*" placeholder="0,00" />

And some other input values for pattern I can't recall.

Paul van den Dool
  • 3,020
  • 3
  • 20
  • 44

0 Answers0