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