Hello campers,
I have been struggling to make the jquery work as the button doens´t trigger the function. Would be really glad if anyone could help me out.
Thanks.
PS: Do not note the design of the site. I am going to make it better in the future =)
you have the click handler set up wrong. you want
$("#getMessage").on("click", getQuote);
also, for the randomNum this seems to work better
var len = quotes.length;
var randomNum = Math.floor(Math.random()*len);
also, when you tried to add bootstrap, at the very end after .min.css
it says .min.cssHope
for some reason…you just want the first one
also, in codepen you can automatically add bootstrap from the dropdown menu
hope these tips help