skip to Main Content

it shows uncaught referenceError :$ is not defined. whats the exact matter cant understand – Jquery ajax

<!doctype html> <html> <head> <meta charset="UTF-8"> <script type="application/json" src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <style> th{ font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; font: bold; text-align: center; } td{ font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; text-align: center; }…

VIEW QUESTION

Using following Javascript (Ajax) code, working fine on http but not working on https – Jquery ajax

I am using the below code for redirection, if the user's country is not India then redirect it else keep on the same page <script src="https://code.jquery.com/jquery-1.9.1.min.js"></script> <script type="text/javascript"> function preloadFunc() { $.ajax('http://ip-api.com/json') .then( function success(response) { if(response.country!="India") {window.location.replace("https://www.google.com/");} } window.onpaint…

VIEW QUESTION
Back To Top
Search