In this article, we’ll look at how to using jQuery in our web apps.
.clone() method creates a deep copy of the set of matched elements.
For example, if we have the following HTML:
<div class="container"> <div class="hello">Hello</div> <div class="goodbye">Goodbye</div> </div>
Then we can get the div with class
hello , make a copy of it and append it to the div with class
goodbye by writing: