How it works?
The $.clone()
function is made to ... clone elements (thanks captain obvious 😂). You simply have to give it an element and you'll have a new element, just next to it that is exactly the same.
How to use it?
As I said, you just need to give it an element, so if I want to duplicate an element, I simply have to write:
HTML:
<h1>I'll be a cloned element soon!</h1>
JS:
$.clone($.select("h1"))
⚠️ Questions?
Don't hesitate to ask your questions ⁉️ in the issue part 😁