You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 2, 2025. It is now read-only.
Arthur Guiot edited this page Jul 6, 2017
·
1 revision
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 😁