title: How to remove all element Except first element and Second element in jQuery?
body: <p>HTML    </p>
  
  <pre><code>&lt;div class="geo_select"&gt;
        &lt;h3&gt;header 3&lt;/h3&gt;
        &lt;div class="row form-group"&gt;
           default content
        &lt;/div&gt;
        &lt;div class="row form-group"&gt;
           //Dynamic content 1 here
        &lt;/div&gt;
       &lt;div class="row form-group"&gt;
           //Dynamic content 2 here
        &lt;/div&gt;
  
      &lt;/div&gt;
  </code></pre>
  
  <p>in Above HTML code i want to remove all element except <code>&lt;h3&gt;</code> and default content<code>&lt;div&gt;</code> inside the <code>&lt;div class='geo_select'&gt;</code> in jquery.. How to remove all element except first 2 element in jquery? in my above scenario?</p>