How to move an element from one place to another in the DOM using plain JavaScript?
<p>I know how to do it in jQUery (untested but should work):</p>

<pre><code>$('#foo').html().appendTo('#bar');
$('#foo').remove();
</code></pre>

<p>But how to do this in plain JS?</p>
