Remove table from <div> tag

Avequenna

New Member
I have a tag in which I add dynamically through javascript:\[code\]var htmlText = "<table id='table_" + id + "'><tbody>";htmlText += "<tr> <td><img src='http://stackoverflow.com/Icons/action_delete.gif' onclick='javascript:RemoveUser(\"" + id + "\");' /></td> <td>" + name + " </td></tr>";htmlText += "</tbody></table>";document.getElementById("divSearchUsers").innerHTML += htmlText;\[/code\]I add multiple table to the div. Now I want to remove a particular table.I get the ID of the table in RemoveUser function. How do I proceed for it?
 
Back
Top