/*
but IE/Edge doesn't so shows it literal.
http://codepen.io/Luc1100/pen/BRqQXv
Can someone please tell me what I am doing wrong? I literally copied this from a tutorial on youtube and it will still not generate a new quote.
VM740 pen.js:1 Uncaught ReferenceError: $ is not defined at VM740 pen.js:1
. $("#id")
is a way to select things using jQuery so be sure to include jQuery in the pen's options.
luc1100 sends cookie points to @lilyheart :sparkles: :thumbsup: :sparkles:
:cookie: 330 | @lilyheart |http://www.freecodecamp.com/lilyheart
After you fix the jquery issue and click New Quote
there is a new error in the console. This one is more tricky. XMLHttpRequest cannot load http://api.forismatic.com/api/1.0/?method=getQuote&format=json&lang=en&_=1495381321698. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://s.codepen.io' is therefore not allowed access.
There is something to read before understanding what is going on. CORS on the mdn. Read and research until this make sense.