Answers for "javascript remove item onclick"

1

javascript remove item onclick

function remove(elem){
  elem.parentNode.removeChild(elem);
}
<div id="i", onclick="remove(this)">click</div>
Posted by: Guest on October-02-2020

Code answers related to "javascript remove item onclick"

Code answers related to "Javascript"

Browse Popular Code Answers by Language