how to move an element from one place to another javascript code example
Example 1: how to move div using jquery
$('#destination').append( $('#source') );
Example 2: move an element into another jquery
$('#source').appendTo('#destination');
$('#destination').append( $('#source') );
$('#source').appendTo('#destination');