I have the following code in JavaScript:
all_el_ul = document.getElementsByClassName(\'element_list\')[0]; div_list = all_el_ul.getElementsByTagName(\"div\")
Please try this. (Support all browsers)
var child = document.getElementById(id); child.parentNode.removeChild(child);