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