As I am using jQuery mobile?
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.
精彩评论