How to force keyboard with numbers in mobile website in Android

前端 未结 7 1511
南旧
南旧 2020-11-28 23:31

I have a mobile website and it has some HTML input elements in it, like this:



        
相关标签:
7条回答
  • 2020-11-29 00:19

    This should work. But I have same problems on an Android phone.

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

    I found out, that if I didn't include the jquerymobile-framework, the keypad showed correctly on the two types of fields.

    But I havn't found a solution to solve that problem, if you really need to use jquerymobile.

    UPDATE: I found out, that if the form-tag is stored out of the

    <div data-role="page"> 
    

    The number keypad isn't shown. This must be a bug...

    0 讨论(0)
提交回复
热议问题