masked input not working in android mobiles?

后端 未结 8 1195
一生所求
一生所求 2020-12-14 15:17

I am using the digitalbush masked input jQuery plugin. It is working fine in web browsers and the iPhone browser perfectly, but it is not working for Android mobile devices.

8条回答
  •  太阳男子
    2020-12-14 15:51

    I resolved this issue with three actions, which have fixed this for all Android 4.0+ phones:

    1. Update masked-input to at least version 1.4
    2. Add type="tel" to the input, to trigger the numeric keyboard
    3. Remove the input's maxlength attribute or set it to a value certain not to interfere with the caret action, like 20.

提交回复
热议问题