- 5

javascript

help please Drag and drop from the options below to remove the node element from the page (par is node's parent). var par = document.getElementById("par"); var node = document.getElementById("node"); .(); ____ ______ ________ par removeChild document createElement node

13th May 2020, 9:16 PM
Hussam Saleh
Hussam Saleh - avatar
2 odpowiedzi
+ 6
it's simple enough that you can even guess Like par is parent here and node is his child obviously So it should be par.removeChild(node);
13th May 2020, 9:40 PM
Abhay
Abhay - avatar
+ 1
var par = document.getElementById("par"); var node = document.getElementById("node"); par.removeChild(node);
25th Nov 2020, 12:22 PM
Shahbaz Akhtar Javed
Shahbaz Akhtar Javed - avatar