Search code examples
xcodecordova

PhoneGap + Xcode + UIKeyboardTypeDecimalPad


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?


Solution

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