Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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.

Edeziri site na qanavatian.hamzeh

All Replies (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

Edeziri site na qanavatian.hamzeh