jquerymobile numerical keypad phonegap

2019-04-10 17:34发布

I'm using jquerymobile, but can't get the keypad to only show numeric keys (including decimals). Only default keypad is shown.I'm using phonegap, I use

<input type="number">

the problem is that the numpad is shown but when i use

input {-webkit-user-modify: read-write-plaintext-only;}

the default keypad is only shown. Any suggestion would be great.

Thankx.

1条回答
Bombasti
2楼-- · 2019-04-10 18:14

use $('#<element-id>').focus();

查看更多
登录 后发表回答