I have a container in which youtube is playing video.
<div id="current-container"><span class="youtube"></span></div>
And I have another #new-container
in which I want to move it after some event.
this is how I'm doing it:
jQuery('#new-container').html(jQuery('#current-container').find('span.youtube'))
the problem with it is that it stops playing and kind of makes new iframe.
I also tried clone()
with span and iframe as well
here is a jsFiddle
any solution will do, even when keeping current video in its own container and just making copy. nothing worked so far.