title: jQuery: remove element by id
body: <p>I have a problem that I'm trying to solve, the current way of doing it requires that I remove elements.</p>
  
  <pre><code>&lt;div id="toremove"&gt;
      // some JavaScript here
  &lt;/div&gt;
  </code></pre>
  
  <p>So I have a function that does something nice, then when that finishes I'd like it to remove the <code>"toremove"</code> element. I have looked at the jQuery documentation, similar posts allover the Internet but nothing seems to work.</p>
  
  <p>Here's what I'm doing and have tried:</p>
  
  <pre><code>$("#toremove") = $()
  $("#toremove").empty();
  $("#toremove").remove();
  </code></pre>
  
  <p>Nothing seems to work for me, any help is appreciated.</p>