+ 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 Respuesta
+ 1
Yes..Thank you
8th Jun 2020, 3:49 PM
Ajitha G R
Ajitha G R - avatar