remove

removes an HTML element from DOM

void remove(HTMLElement|HTMLElement[] node);

Parameters

nodeHTMLElement|HTMLElement[]an HTML element (or an array of elements)

Example

<a id="l1" href='http://google.com'>Google</a>
<a id="l2" href='http://yahoo.com'>Yahoo</a>
<button type="text" onclick="myfunc()">Remove the link</button>
function myfunc ()
{
    var link1 = document.getElementById("l1");
    var link2 = document.getElementById("l2")
 
    webix.html.remove(link1);
    //or webix.html.remove([link1,link2])
}

See also
Back to top