title: How do I remove duplicate ids?
body: <pre><code>&lt;td id="table_line_0"&gt;
  &lt;input id="btnAdd0" type="button" value="+" onClick="newLine()"&gt;
  &lt;/td&gt;
  &lt;td id="table_line_0"&gt;
  &lt;input id="btnAdd1" type="button" value="+" onClick="newLine()"&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>I need a javascript function to remove the two id (table_line_0)... tks!!</p>
  
  <pre><code>function removeID(id)
  {
  
   ... I do not know what to do to find duplicate id ..
  
   line_table = document.getElementById(id);
   line_table.parentNode.parentNode.removeChild(line_table.parentNode);
  }
  </code></pre>
  
  <p>I have two 'tr' with same id ... I want to remove the 'tr' with the same id..</p>