Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript remove last child element

function remove_last_child() {
  var select = document.getElementById('parent_element');
  select.removeChild(select.lastChild);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #remove #child #element
ADD COMMENT
Topic
Name
5+1 =