Tweet Button data-text attribute update with AJAX


#1

Hello people,

I have ajax based page where i add new content every few minutes. I’ d like to update text of tweet as well. Is it possibly?

[a id=“my_tweet_button” href=“https://twitter.com/share” class=“twitter-share-button” data-text="<?php echo $twitter_title; ?>"]Tweet[/a]

Thanks!


#2

Anybody ???


#3

#4