Need some help with my Random Quote Generator jQuery

I am trying to get the click event to work. It used to work before I added fadeToggle but now it’s failing and I am not sure why.

Here is the code:

https://jsfiddle.net/trwhite6878/fwc5m1jk/2/

Line 37 - what is quoteBox?

I see

$quoteBox

	window.open('https://twitter.com/intent/tweet?hashtags=quotes&related=freecodecamp&text=' + quoteBox);
		console.log(quoteBox);

Do you see ‘$’? There is a variable which is not declared.

1 Like

I declared the variable. It opens Twitter but I get the [Object object] error as the entry. Console said post is not defined and $quoteBox is not defined but I don’t see where it isn’t. @xavierartot

https://jsfiddle.net/trwhite6878/n6t23mtt/7/

Here it is in CodePen: