Hello I'm struggling to get this to work:
I'm trying to get jQuery to execute a PHP Script for me, at the moment it looks pretty much like this:
html
<button id="element">Click me!</button>
php
$string = "Hello Earth!";
echo $string;
jQuery
$('#element').click(function() {
$.load('.../script.php', function(e){
console.log(e);
});
});
ReferenceError: $ is not defined (test.html:11)which is the line$('#element').click(function() {TypeError: $.load is not a function