How to move an element into another element?
Asked 07 September, 2021
Viewed 1.1K times
  • 53
Votes

I would like to move one DIV element inside another. For example, I want to move this (including all children):

<div id="source">
...
</div>

into this:

<div id="destination">
...
</div>

so that I have this:

<div id="destination">
  <div id="source">
    ...
  </div>
</div>

15 Answer