蒙面输入不工作在Android的手机?工作、手机、Android

由网友(嗨ˉ催眠曲)分享简介:我用这https://github.com/digitalBush/jquery.maskedinput 插件它工作正常的网页浏览器和iPhone的浏览器完美,但在Android的手机是不是工作正常,并返回一些不同的行为。我的问题:面膜在输入字段的 _ - - _ _ 当我键入数字将123456855...

我用这https://github.com/digitalBush/jquery.maskedinput 插件它工作正常的网页浏览器和iPhone的浏览器完美,但在Android的手机是不是工作正常,并返回一些不同的行为。

我的问题: 面膜 在输入字段的 _ - - _ _

当我键入数字将12345685555_ - - __

例: http://rossbender.com/temp/mask.html

任何一个建议?如何解决此问题?

谢谢 普拉萨德。

解决方案

我有三个动作,也有固定的这个对所有的Andr​​oid 4.0+手机解决了这个问题, 更新屏蔽输入到至少 1.4 添加 TYPE =电话来输入,触发手机按键 删除输入的最大长度属性或将其设置为一个值一定不干扰插入符号作用,如 20

I am using this https://github.com/digitalBush/jquery.maskedinput plug-in it is working fine in web browsers and iPhone browser perfectly, but in android mobiles it is not working fine and returns some different behaviour.

Android 13 来了,但我并不建议你升级尝鲜

My issue : mask is in input field _ - - __.

When I type numbers it will 12345685555_--__

Example: http://rossbender.com/temp/mask.html

any one suggest ? how to solve this ?

Thanks Prasad.

解决方案

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

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

阅读全文

相关推荐

最新文章