title: How to remove all element with same id except one?
body: <p>Let say there's 3 times the same ID, I want to delete all of them except one.
  Example : </p>
  
  <pre><code>&lt;div id = "parent_id"&gt;
       &lt;div id = "id_1"&gt;
          &lt;div id = "id_1-1"&gt; &lt;/div&gt;
          &lt;div id = "id_1-1"&gt; &lt;/div&gt; // I want to delete this
          &lt;div id = "id_1-1"&gt; &lt;/div&gt; // I want to delete this
          &lt;div id = "id_1-2"&gt; &lt;/div&gt;
          &lt;div id = "id_1-2"&gt; &lt;/div&gt; // I want to delete this
          &lt;div id = "id_1-2"&gt; &lt;/div&gt; // I want to delete this
       &lt;/div&gt;
       &lt;div id = "id_2"&gt;
          &lt;div id = "id_2-1"&gt; &lt;/div&gt;
          &lt;div id = "id_2-1"&gt; &lt;/div&gt; // I want to delete this
          &lt;div id = "id_2-1"&gt; &lt;/div&gt; // I want to delete this
          &lt;div id = "id_2-2"&gt; &lt;/div&gt;
          &lt;div id = "id_2-2"&gt; &lt;/div&gt; // I want to delete this
          &lt;div id = "id_2-2"&gt; &lt;/div&gt; // I want to delete this
       &lt;/div&gt;
       &lt;div id = "id_3"&gt;
          &lt;div id = "id_3-1"&gt; &lt;/div&gt;
          &lt;div id = "id_3-1"&gt; &lt;/div&gt; // I want to delete this
          &lt;div id = "id_3-1"&gt; &lt;/div&gt; // I want to delete this
          &lt;div id = "id_3-2"&gt; &lt;/div&gt;
          &lt;div id = "id_3-2"&gt; &lt;/div&gt; // I want to delete this
          &lt;div id = "id_3-2"&gt; &lt;/div&gt; // I want to delete this
       &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Can it be done with a for loop ?
  Thanks in advance !</p>