How to set numeric keypad in html for android?

Hi

i have set pattern=“[0-9]*” for iphone to show numeric keypad,but in android didnt accepts this . if i set type=“number” it shows numeric keypad. which one is support for both iphone and andorid. give suggestion or examples?

What is stopping you from specifying a pattern and the input type? Two different attribute types that kind of go together well… :wink: