I am almost done with my random quote generator. However, my twitter button tweets the next quote and not the current one. Please have a look at this and let me know what I’ve missed. Thank you in advance!
Your function getQuotation
changes the page’s text to whatever currentAuthor
and currentQuote
were before the function fired. Then the function changes the value of currentAuthor
and currentQuote
to whatever is in the AJAX response. Move lines 15 and 16 down.
Thank you so much! It works fine now!
1 Like