title: jQuery .remove() with selector doesn't work
body: <p>According to the <a href="https://api.jquery.com/remove/" rel="noreferrer">.remove() | jQuery API Documentation</a>, it is perfectly valid to include a selector as an optional parameter to <code>.remove()</code>. Quote:</p>
  
  <blockquote>
    <p>We can also include a selector as an optional parameter. For example,
    we could rewrite the previous DOM removal code as follows:</p>
  </blockquote>
  
  <pre><code>$( "div" ).remove( ".hello" );
  </code></pre>
  
  <p>So I've written 2 divs to test this out:</p>
  
  <pre><code>&lt;div id="div1"&gt;test
      &lt;div id="div2"&gt;Remove&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Using this as jQuery:</p>
  
  <pre><code>$( document ).ready(function() {
      $( "#div1" ).remove( "#div2" );
  });
  </code></pre>
  
  <p>It didn't remove the div as expected. The result was:</p>
  
  <blockquote>
    <p>test<br /> Remove</p>
  </blockquote>
  
  <p>Instead using:</p>
  
  <pre><code>$( document ).ready(function() {
      $("#div2").remove();
  });
  </code></pre>
  
  <p>Removes the div as expected. So what am I missing here? Is the documentation wrong? Did I misunderstood something?</p>