2012-01-17 11 views
1

私はPhoneGap + Xcodeを使ってアプリケーションを作成しています。PhoneGap + Xcode + UIKeyboardTypeDecimalPad

<input type="" />

任意の回避策、モッズ、微調整:HTMLでこのタグを使用しているとき、私はUIKeyboardTypeDecimalPadを示すことができる方法はありますか?

答えて

0

input type = "number"を追加してからpattern = "[0-9] *"を入力すると、数字パッドが表示されます。

+0

お役に立てば幸いです "と。" 10進数のキーボードの – Mirko

1

See the documentation here

私はあなたが

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

または

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

を使用することができますね、それが、これは表示されません

+0

には、 "。"が表示されません。十進数のキーボードで – Mirko

+0

http://stackoverflow.com/questions/9204762/showing-an-input-that-only-allows-numbers-and-the-decimal-point –

関連する問題