xxxxxxxxxx
$('#source').appendTo('#destination');
xxxxxxxxxx
// Assuming the element to be moved has an id of "myElement"
// and the element to which it should be moved has an id of "newParentElement"
// Move the element to the new parent
$("#myElement").appendTo("#newParentElement");