.remove() Not Working In Internet Explorer August 20, 2024 Post a Comment This code works very well in Google Chrome, but wont work in Internet Explorer: document.getElementsByClassName('info')[i].remove(); Is there some other method to do the same thinSolution 1: remove is not supported by ieYou would have to get the parent and call removeChildvar node = document.getElementsByClassName('info')[i]; node.parentNode.removeChild(node); CopyAlso since you have jQuery tagged you could just do jQuery(".info").eq(i).remove() Copyas jQuery does cross browser checks and uses the correct methods Share Post a Comment for ".remove() Not Working In Internet Explorer"
Post a Comment for ".remove() Not Working In Internet Explorer"