In my code, a line is producing this error in my console:
Uncaught SyntaxError: Unexpected token {
It was working perfectly fine before and just decided to stop. The code on the line it mentions is:
$('#next').click(){
$('#atestimonial').load('http://website.com/testimonialPull.php');
return false;
});
I cant see whats wrong with that, the thing its loading exists I have checked and it generates the text needed, so its a problem with the load / .click()
It looks like you’re trying to pass a function to the
clickfunction, but not doing it correctly. Instead try something like this: