vanilla javascript remove last child from element code example
Example: javascript remove last child element
function remove_last_child() {
var select = document.getElementById('parent_element');
select.removeChild(select.lastChild);
}
function remove_last_child() {
var select = document.getElementById('parent_element');
select.removeChild(select.lastChild);
}