Jump to content

[SOLVED] removing multiple elements


ricmetal

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.