I am trying to use the jQuery .removeData and .data functions to change the values in the tweet button. I am trying to modify the data-text attribute and I cannot get it to work.
My thought process:
1.Remove the original value for data-text with the jQuery:
2.Pull from my array to with:
All the jQuery in my JS works except those two. I am almost positive it has to do with my attempt at modifying the DOM data. I know a different solution as a work around for this, but really want to understand the flaw in my logic.
I welcome any comment that can point me in the correct direction.