The .clone() method creates a duplicate of the matched elements. It allows either event handler will be copy or not, it by default doesn’t copy attached events.
This simplifies your code when you need to make a clone of the group of elements. You don’t have the need to create each group element and insert it.
In this tutorial, I show how you can use the jQuery .clone() method to create the clone of the elements.



