I am trying to dynamically generate a link to Post a tweet on twitter and then click on it like this...
$("body").prepend("<a id=\"twitter_link\" href='https://twitter.com/intent/tweet'></a>");
$( "#twitter_link" ).click(function() {
console.log( "Handler for .click() called." );
});
This is not working, where am i going wrong?