Need help, random quote machine twitter problem

Please help,
When I wont publish post on tweeter it don’t show author instead of that it shows > said by [object HTMLSpanElement]
the code is here


You should add variable author before use it. Like you have quote variable. Please try something like that:

  success: function(response) {
    quote = response.quoteText;
    author = response.quoteAuthor;
    if (response.quoteAuthor) {
      $("#author").text("said by " + author);
    } else {
      $("#author").text("- unkown author");
1 Like

Thank you, that solve the problem.

1 Like