The mobile terminal clicks the key that input pops up to be the numeric keyboard, how to realize?

the key that input pops up by clicking on the mobile terminal is a numeric keypad. How can it be realized?

No input Chinese is allowed, as long as the numeric keypad is realized. "

Nov.08,2021

< input type= "number" pattern= "\ d*" / > or < input type= "tel" / >


type= "number" is the keyboard that pops up to be numeric by default.
but users can manually switch between Chinese keyboards.
you want this
https://codeshelper.com/a/11.


do you mean that you can only enter numbers? if so, you can use rules to judge in real time, and if not numbers will not be displayed. I think what you want is this


draw your own keyboard

.
Menu