Elementals.js

Latest Version: 2.0 RC 3 14 March 2017

Method _.nodeRemove

Removes the passed Element from the DOM.

Calling Convention:
_.nodeRemove(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');
_.nodeRemove(test);

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