+ 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?
1 Answer
+ 1
Yes..Thank you
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?