开发者

As I am using jQuery mobile?

开发者 https://www.devze.com 2023-02-23 03:01 出处:网络
I have designed a web app and it has a form which has one field below like, phone:<input type="text">

I have designed a web app and it has a form which has one field below like,

phone:<input type="text"> 

When I touch this screen (selecting the textbox to enter the data), th开发者_StackOverflow社区e qwerty keypad is enabled by default. It is with character after pressing shift I can enter numbers in the text field.

ex:

<select name="source" data-native-menu="true">

and

<select name="source">

The above example shows a lot of variation while selecting the options in Android mobile which I observed.


In the meantime, I am going to guess. Do you want to restrict the input to numbers? Does this help you?:

<input type="number" min="0" max="10"> 

(you can choose whatever min and max values you want or use only input="number") That should force android to open the numeric keyboard instead of the full qwerty upon gaining focus.

0

精彩评论

暂无评论...
验证码 换一张
取 消