Elementals.js

Latest Version: 3.0 RC 1 17 July 2017

Method _.Node.remove

Removes the passed Element from the DOM.

Calling Convention:
_.Node.remove(Element)
Parameters:
Element
The Element to be removed.
Returns:
Nothing

Example

HTML

<ul>
	<li>First</li>
	<li id="test">Second</li>
	<li>Third</li>
</ul>

JavaScript

var test = document.getElementById('test');
_.Node.remove(test);

<li id="test">Second</li> will be removed from the list.