Reputation: 899
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?
Upvotes: 1
Views: 910
Reputation:
You can add the input type="number" and then pattern="[0-9]*" to bring up a number pad.
Upvotes: 0
Reputation: 12959
I guess you can use
<input type="text" pattern="[0-9]*"></input>
or
<input type="tel"></input>
Hope it helps
Upvotes: 1