蒙面输入不工作在Android的手机? [英] masked input not working in android mobiles?

查看:131
本文介绍了蒙面输入不工作在Android的手机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

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

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

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

谢谢 普拉萨德。

解决方案

我有三个动作,也有固定的这个对所有的Andr​​oid 4.0+手机解决了这个问题,

  1. 更新屏蔽输入到至少 1.4
  2. 添加 TYPE =电话来输入,触发手机按键
  3. 删除输入的最大长度属性或将其设置为一个值一定不干扰插入符号作用,如 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 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:

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

这篇关于蒙面输入不工作在Android的手机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆