<td id="table_line_0">
<input id="btnAdd0" type="button" value="+" onClick="newLine()">
</td>
<td id="table_line_0">
<input id="btnAdd1" type="button" value="+" onClick="newLine()">
</td>
I need a javascript function to remove the two id (table_line_0)... tks!!
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);
}
I have two 'tr' with same id ... I want to remove the 'tr' with the same id..