-
Notifications
You must be signed in to change notification settings - Fork 57
$.remove()
Arthur Guiot edited this page Jul 7, 2017
·
1 revision
This function will simply remove an element from the DOM. You just give it an element and it will remove it definitively. This function is similar to rm -rf
, but for the DOM 😊.
Let's say we want to remove an element, that's how we do it:
HTML:
<div class="toRemove">You won't see me after when DisplayJS will do its work 😭!</div>
JS:
$.remove($.select(".toRemove"))
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()