Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
20
rated 0 times [  23] [ 3]  / answers: 1 / hits: 16685  / 12 Years ago, fri, september 14, 2012, 12:00:00

I am trying element.parentNode.removeChild() method. Its working fine in Firefox but not working in IE 9.



Can anyone please tell how to remove an element in IE using javascript?



Thanks...


More From » html

 Answers
5

Use removeChild function in the parentNode of the element.



If element is the node that needs to be removed, then do this:



element.parentNode.removeChild(element)

[#83090] Wednesday, September 12, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
maxh

Total Points: 137
Total Questions: 100
Total Answers: 103

Location: Kazakhstan
Member since Mon, Sep 26, 2022
2 Years ago
maxh questions
Tue, May 18, 21, 00:00, 3 Years ago
Mon, Jan 4, 21, 00:00, 3 Years ago
Mon, Nov 23, 20, 00:00, 4 Years ago
;