Skip to content

$.remove()

Arthur Guiot edited this page Jul 7, 2017 · 1 revision

How it works?

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 😊.

How to use it?

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"))

⚠️ Questions?

Don't hesitate to ask your questions ⁉️ in the issue part 😁

Clone this wiki locally