I have a script (helped out by @briguy37 Remove multiple elements with same name using removeChild?) that removes all the elements with a certain class name by using a for loop and using removeChild. Its working perfectly in FF, but in IE, i get the error
Object doesnt support this property or method
The project can be viewed at: http://jsfiddle.net/U8xkg/31/
The error refers to the line:
var childNodesToRemove = document.getElementById(parentId).getElementsByClassName('foo');
Any ideas?
Thanks.
1 Answer