[thelist] dynamically removing a row with the DOM

Danny Goodman dannyg at dannyg.com
Mon Feb 24 10:37:01 CST 2003


I much prefer to use the table modification methods associated with the
table/tbody and tr elements:

   tableElem.deleteRow()
   tableElem.insertRow()
   trElem.deleteCell()
   trElem.insertCell()

They work fine in IE/Windows and Mozilla.

Danny
http://www.dannyg.com

> I have a script where I dynamically add a table row using the DOM,
> and it works nicely. The problem is removing the row as well. I have
> looked into this, and the removeChild() method is apparently the way
> to go.




More information about the thelist mailing list