Need help with twitter button on random quote machine

Here is my codepen . I don’t know how to display quote in twitter status box.

1 Like

You’re so nearly there!

Change '


''+ json.quoteText

It should work.

yeah, with that i just tweet the first quote

I did it. a litle complicated, but here it is… $("#desni").click(function(){
var textToTweet=$(".quote").text()+ ’ -’ + $(".autor").text();

  var tweetLink = '' + encodeURIComponent(textToTweet);,’_blank’);});
Now just to put a litle make up and that’s it :smiley: