how clone method element works in javascript code example Example: jquery clone $( ".hello" ).clone().appendTo( ".goodbye" );