function remove_last_child() { var select = document.getElementById('parent_element'); select.removeChild(select.lastChild); }