function to remove an element on click event javascript code example
Example: remove element onclick javascript
function remove(el) {
var element = el;
element.remove();
}
function remove(el) {
var element = el;
element.remove();
}