Error with getElementById(id).remove() in IE11
<p>I have this code:</p>

<pre><code>document.getElementById(id).remove();
</code></pre>

<p>But, IE give me an error with this function. Do you know an other way for make this remove?</p>