Tell us what’s happening:
My code is not running locally. I was trying to built the random quote generator but the code was not working ,so i decided to step back and try the show message code, which is also not working. My git link:https://github.com/karan919/Random-Quote-Generator
Can someone please check the git and tell me why the code not running .
Your browser information:
Your Browser User Agent is:
Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36.
Link to the challenge:
So, there are a couple of problems here.
2 There is no
div element with an id called “demo” so your statement:
$("#demo").html("Here is the message");
has nothing to target. Add the line:
in your HTML wherever you want that to go.
Thanks man for the solution. I didn’t know that you need to load jQuery first and also thanks for the naming tips.