JavaScript Usuń element OnClick
function remove(elem){
elem.parentNode.removeChild(elem);
}
<div id="i", onclick="remove(this)">click</div>
Courageous Cardinal
function remove(elem){
elem.parentNode.removeChild(elem);
}
<div id="i", onclick="remove(this)">click</div>
function remove(el) {
var element = el;
element.remove();
}
how to delete an item on click in js
delet