jQuery .clone() .clone () clones the selected element. grammar .clone( [withDataAndEvents ] ) for example $( '.ab' ).clone().appendTo( 'h1' ); Duplicate an element that has ab as a class value and put it in the h1 element. example Duplicate the span element and place it inside the h1 tag. Lorem ipsum dolor. Lorem ipsum dolor. Lorem ipsum dolor. The rendered result is as follows: