Reputation: 621
I am writing a code where a user can fill a form and the form details will be sent via $.post
Here is the code:
$.post("save.php",{userName:userName,message:message},function(data,status){alert('Thank you');});
The code is working perfectly on my laptop but many of my users are saying that it's not working on their laptop/mobile device.
Is there anything i can do to enable compatibility of $.post on all browsers?
I have included jquery from here: https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
Upvotes: 0
Views: 88
Reputation: 4168
I think you must use jquery 1.11.xx because 2 version is not work for many browser and devices.
for example the official browser support info:
Internet Explorer +9
Chrome (Current - 1) or Current
Firefox (Current - 1) or Current
Safari 5.1+
Opera 12.1x, (Current - 1) or Current
iOS 6.1+
Android 4.0+
Downgrade the jquery.
Upvotes: 1