JQuery – Move an element into another element?

If you would like to move one DIV element inside another.

For example,  move this with childrens:

into this:

so than I have this:

 

To do this you may want to use the appendTo function (which adds to the end of the element):

Alternatively you could use the prependTo function (which adds to the beginning of the element):