#jquery #clone() .clone() .clone() clones the selected element. grammar .clone( [withDataAndEvents ] ) for example $( '.ab' ).clone().appendTo( 'h1' ); will duplicate the element with ab as the class value and put it in the h1 element. example Duplicate the span element and place it inside the h1 tag. Lorem ipsum dolor. Here is the rendered result: Lorem ipsum dolor. Lorem ipsum dolor.