iPhone UIWebview: How to force a numeric keyboard? Is it possible?

后端 未结 10 1704
清酒与你
清酒与你 2020-12-02 09:34

I\'m experimenting with PhoneGap to develop some iPhone apps. PhoneGap basically wraps a UIWebView - it works well. The problem is the my app has several input fields that

10条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-02 10:27

    What you can also use for iOS phonegap based app is :

    input type="number" pattern="[0-9]*"
    

    It is shown in the image below. Works beautifully with iOS 8.2 and phonegap 3.5 and above.

提交回复
热议问题