+ 1
DOM removing element
will this work ? why not? var parent=document.getElementById("div"); parent.removeChild(parent.childNodes[0]);
3 Antworten
+ 1
try uploading a code
0
Note the difference between .childNodes and .children. .childNodes might grab white space.
- 1
please link your code as I don't see any obvious problem