 <p>Add a check if there's already a video playing, if yes remove it.</p> <pre><code>$(function(){ $('.toggle').click(function(e) { e.preventDefault(); var content = '&lt;video id="my_video"&gt;&lt;source src="animation.mp4" type="video/mp4"/&gt; &lt;/video&gt;', search = $('video#my_video').length; if(search &gt; 0) { $('video#my_video').remove(); } else { $('#videowrapper').append(content); _V_('my_video', {'controls': true}); } }); }); </code></pre> <p>Something like this should suffice.</p> <p>Thanks for downvoting me, I accidentally pressed tab to make spaces, which took my focus to the post-button, and then I pressed enter cause i wanted a new line, and it posted my post before I was done :P</p>