I am trying to send quote to tweet but can’t send one. Can you please tell me what the error + the solution Code. Link:

  1. $.get(url, callback) function fires its callback after a certain period of time. Meaning that let text is empty during $(selector).attr(attributeName) operation. To fix move this operation inside the callback function.
  2. You are using a <button> but not indicating any logic for click action. Either change it to an <a> tag or create a $(selector).click(handler) to handle the user click.
1 Like

Thanks man, for the help. It seemed like using button was not the right choice and I put the tweet function separate.

1 Like