-
Notifications
You must be signed in to change notification settings - Fork 57
$.clone()
Arthur Guiot edited this page Jul 6, 2017
·
1 revision
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.
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"))
Don't hesitate to ask your questions
- Home
- The Core Languages
- Getting Started: Installation
- The Basics (
$.var()
+$.target()
) - Developing for DisplayJS
-
$.select()
- Text related
- If...else
$.xss()
$.repeat()
$.custom()
$.live()
$.load()
$.on()
$.onEvent()
$.ready()
- Scroll API
$.all()
$.clone()
$.is()
$.valEmpty()
$.remove()
$.show()
&$.hide()
$.ajax()
- Class Related
$.css()
$.getStyle()
- Fade effects
$.extend()
$.dynamic()
$.parent()
- Elements-Nodes
$.component()
$.time_ago()
$.copy()
$.then()
$.sleep()
$.getProp()