What is the problem of implementing digital keypad on ios with mobile web page input number?

there is a text box in the mobile web page to enter the price, which must be opened as a numeric keypad. I use

<input type="number" />

ios

then find online information

<input type="number" pattern="[0-9]" />

ios

clipboard.png
demo: http://jsbin.com/peqoliroqo
is a pitfall. After searching for a long time, many of them are native solutions to ios. Is there any solution for mobile web?

May.14,2021

I can ios what kind of system do you have?


<input type="tel" />

try


pattern is a regular expression, write [0-9], naturally there is no decimal point, it looks like [0-9]\. Just


Hello, have you finished it?

Menu