Hello fellow campers!
So I just started the Intermediate projects and I ran into this problem in my Random Quote Machine (link on Codepen). In short - it doesn’t work.
Whenever I click the ‘new quote’ white button I’m supposed to be calling the function getNewQuote()
and therefore changing the content of #quoteText
and #quoteAuthor
however I seem to be returning the same quote. I’m really lost here so any help would be appreciated.
[FIXED]Also, if you test the ‘tweet’ button you will notice that the predetermined text/quote is ‘served’ as HTML since that is the way I receive it on the API call. Is there any way to format it other than using regular expressions? I put it in #quoteText
and #quoteAuthor
using the .html()
method which takes care of all tags etc. but I’m not quite sure how to make it text-only within the tweet.
Thanks in advance!