Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Läs mer

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.

Ändrad av qanavatian.hamzeh

Alla svar (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

Ändrad av qanavatian.hamzeh