Say I have an embedded tweet inside a div:
<div id="tweet">
<blockquote class="twitter-tweet"><p>A lion would never cheat on his wife. But a Tiger Wood.</p>— Puns (@omgthatspunny) <a href="https://twitter.com/omgthatspunny/status/301482080490115072">February 13, 2013</a></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>
<div id="tweet-insert"></div>
And I want to copy the tweet and insert it into another div:
var tweetHtml = $("#tweet").html();
$("#tweet-insert").html(tweetHtml);
Here is a fiddle.
This doesn't work and it makes me :(
Any idea on a fix?