问题描述
我用这https://github.com/digitalBush/jquery.maskedinput 插件它工作正常的网页浏览器和iPhone的浏览器完美,但在Android的手机是不是工作正常,并返回一些不同的行为。
我的问题:面膜在输入字段的 _ - - _ _
当我键入数字将12345685555_ - - __
例: http://rossbender.com/temp/mask.html
任何一个建议?如何解决此问题?
谢谢普拉萨德。
我有三个动作,也有固定的这个对所有的Android 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.
My issue :mask isin input field _ - - __.
When I type numbers it will 12345685555_--__
Example: http://rossbender.com/temp/mask.html
any one suggest ? how to solve this ?
ThanksPrasad.
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, like20
.
这篇关于蒙面输入不工作在Android的手机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!