I had the line of code that ran jQuery library in my header
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
My javascript file sends an ajax request to a web service. The web service will output a random quote. The javascript file takes the output and displays it in a div with id='quote'. I checked the php file for web service, it worked fine and printed a random quote. But I kept getting the error below for the line with jQuery
Uncaught SyntaxError: Unexpected token (
And this is code from my javascript file. I also used prototype, that was why I wrote "jQuery" instead of "$"
function displayQuote(ajax){
var quote = ajax.responseText;
$("quote").hide();
$("quote").innerHTML = quote;
jQuery.("#quote").fadeIn(1000);
}
Thank you
.before(. That is all.