搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

why any "firefox android" not work correctly with "js code"?

more options

Hi, I'm ui developer, and

Below js code working good everywhere else 

FireFox browsers(nighty, beta, alpha) android os. In ios, iphones is good.

http://jsfiddle.net/qhq1367/JQ928/196/

$("input.EnglishOnly").bind("keyup input past", function() { var a=$(this).val();

$(this).val("");

if (a!=a.replace(/[^a-zA-Z\s]/,""))

 {console.log("press english charsss plz");}

var alength=a.length; for (var i=0;i<=alength;i++)

  {a=a.replace(/[^a-zA-Z\s]/,"");}

$(this).val(a); });


In firefox android Typing: ASDFg Restlut be: AASASDASDFASDFg

http://jsfiddle.net/qhq1367/JQ928/196/

Please help me In every firefox is working good else android.

Thanks alot.

Hi, I'm ui developer, and Below js code working good everywhere else FireFox browsers(nighty, beta, alpha) android os. In ios, iphones is good. http://jsfiddle.net/qhq1367/JQ928/196/ $("input.EnglishOnly").bind("keyup input past", function() { var a=$(this).val(); $(this).val(""); if (a!=a.replace(/[^a-zA-Z\s]/,"")) {console.log("press english charsss plz");} var alength=a.length; for (var i=0;i<=alength;i++) {a=a.replace(/[^a-zA-Z\s]/,"");} $(this).val(a); }); In firefox android Typing: ASDFg Restlut be: AASASDASDFASDFg http://jsfiddle.net/qhq1367/JQ928/196/ Please help me In every firefox is working good else android. Thanks alot.

由qanavatian.hamzeh于修改

所有回复 (1)

more options

i update my firefox-android from 56.0 to 57.0 and that's solved and working good. thanks alot mozilla-support

由qanavatian.hamzeh于修改