Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript remove item onclick

function remove(elem){
  elem.parentNode.removeChild(elem);
}
<div id="i", onclick="remove(this)">click</div>
 
PREVIOUS NEXT
Tagged: #javascript #remove #item #onclick
ADD COMMENT
Topic
Name
7+2 =