ricmetal Posted April 1, 2009 Share Posted April 1, 2009 how come i cant delete multiple elements? elem = document.getElementById(ti); elem.parentNode.removeChild(elem); elem = document.getElementById(ndi); elem.parentNode.removeChild(div); i thought of a loop but what am i looping? the elements are from different parents .the ids are vars, and are correct edit: oh, wait..i forgot to rename something edit2: nevermind, solved Link to comment https://forums.phpfreaks.com/topic/152094-solved-removing-multiple-elements/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.