Currently experimenting with an ajax call from my console to a local server, but encountering an error:
VM4460:1 Uncaught TypeError: $.ajax is not a function(…)
Here's the code snippet causing the issue:
url = 'http://localhost:8080/testform?q=somethingnew1'
$.ajax({
type: 'GET',
url: url,
});
Can anyone spot what I'm overlooking?
Update - After some investigation, I realized my mistake. The reason for the issue was that I was running the console on a page without jQuery loaded. When I switched to a website where jQuery was properly functioning and rerun the command, it worked flawlessly. Apologies for any confusion caused.