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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.