javascript event move element in dom code example
Example: jquery move element to another without losing events
$('#element_to_move').appendTo('#PARENT_at_destination');
$('#element_to_move').appendTo('#PARENT_at_destination');