1

I'm using PhoneGap + Xcode to create an app. Is there any way I can show the UIKeyboardTypeDecimalPad when using this tag in the HTML:

<input type="" />

Any work-arounds, mods, tweaks?

gatzkerob
  • 877
  • 2
  • 12
  • 32

2 Answers2

1

See the documentation here

I guess you can use

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

or

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

Hope it helps

Titouan de Bailleul
  • 12,920
  • 11
  • 66
  • 121
0

You can add the input type="number" and then pattern="[0-9]*" to bring up a number pad.

abbie
  • 934
  • 6
  • 3