how to clone in jquery code example
Example 1: jquery clone
$( ".hello" ).clone().appendTo( ".goodbye" );
Example 2: jquery clone object
// Shallow copy
var newObject = jQuery.extend({}, oldObject);
// Deep copy
var newObject = jQuery.extend(true, {}, oldObject);