Question is on JavaScript DOM. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Question is on JavaScript DOM.

How to get back parent element to the page after removed it by removeChild method. var x=document.getElementById("demo1"); x.parentNode.removeChild(x) Will appendChild() method works?

8th Jun 2020, 2:14 PM
Ajitha G R
Ajitha G R - avatar
1 Answer
+ 1
Yes..Thank you
8th Jun 2020, 3:49 PM
Ajitha G R
Ajitha G R - avatar