copy div content

by ian_smithz

HTML

<div class="hello">
hello
</div>

<div class="goodbye">

</div>

JavaScript

//$( ".hello" ).clone().appendTo( ".goodbye" );

var data = $('.hello').html();
$('.goodbye').html(data);