PhoneGap + Xcode + UIKeyboardTypeDecimalPad

I am using PhoneGap + Xcode to create an application. Is there a way to show UIKeyboardTypeDecimalPad when using this tag in HTML:

<input type="" />

Any workarounds, mods, tweaks?

+1
source share
2 answers

You can add an input type = "number" and then a pattern = "[0-9] *" to call up the numeric keypad.

0
source

See documentation here

I think you can use

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

or

 <input type="tel"></input> 

Hope this helps

+1
source

Source: https://habr.com/ru/post/1263013/


All Articles