remove

удаляет HTML элемент(ы) из DOM

void remove(HTMLElement|HTMLElement[] node);
nodeHTMLElement|HTMLElement[]HTML элемент (или массив элементов)

Example

<a id="l1" href='http://google.com'>Google</a>
<a id="l2" href='http://yahoo.com'>Yahoo</a>
<button type="text" onclick="myfunc()">Удалить ссылку</button>
function myfunc (){
    var link1 = document.getElementById("l1");
    var link2 = document.getElementById("l2")
 
    webix.html.remove(link1);
    //или webix.html.remove([link1,link2])
}

See also
Наверх