I have this code:
document.getElementById(id).remove();
But, IE give me an error with this function. Do you know an other way for make this remove?
Use this code instead:
var child = document.getElementById(id);
child.parentNode.removeChild(child);