JQuery not working with android browser

I have been using jquery for my web development for a while, and when I use the Android browser to view my work, I find out that the whole jquery function like hide () show () does not seem to work.

Can someone confirm this for me, I am wondering why jquery does not work in Android browser, now I am using 2.3.1. Has anyone encountered this problem before?

+7
source share
3 answers

jQuery works great in an Android browser. The problem is not that jQuery does not work on Android. The problem is different.

It's hard to say that this problem may be without any code, but you can try to get more hints as to what might be wrong if you look at the JS error console (or something similar in Android or Android emulator - basically, where JS errors are logged).

If you want to get super ambitious, you can try debugging it using Weinre or something like that.

+3
source

Since you did not send the code, we do not know if you downloaded your JS assets from the same domain or not. After putting jQuery on the same server instead of using CDN, he solved my problem. I also had other random JS errors, and then I cleared all data / cache for Chrome and completely resolved it.

If the problem is something else, you can follow the instructions here to perform remote debugging on any of the JavaScript errors:

https://developer.chrome.com/devtools/docs/remote-debugging

+3
source

Jquery browser support on desktop and mobile devices: https://jquery.com/browser-support/

It seems that the problem is not jquery support for native Android emulation, as browser support on Android 4.0+ is supported. Any problem with jQuery in the above browsers should be reported as an error in jQuery.

0
source

All Articles