Answers for "as onclick delete this html tag"

0

as onclick delete this html tag

function remove() {
  var element = this.id;
  //I have also tried using document.getElementByID(this.id)
  element.remove();
  //I have also tried using element.parentNode.removeChild(element); to remove the element.
}
Posted by: Guest on April-21-2021

Browse Popular Code Answers by Language