gatzkerob
gatzkerob

Reputation: 899

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?

Upvotes: 1

Views: 910

Answers (2)

user1265335
user1265335

Reputation:

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

Upvotes: 0

Titouan de Bailleul
Titouan de Bailleul

Reputation: 12959

See the documentation here

I guess you can use

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

or

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

Hope it helps

Upvotes: 1

Related Questions