Deleting Child Nodes of an Element Using JavaScript and the DOM

June 30th, 2008

A common thing to want to do with JavaScript and the DOM is to delete all child elements within a parent element. This could be a table, ordered/unordered list, or select menu. Unfortunately it seems that doing this is a PITA judging by how many people have posted requests for help throughout the Internet.
Here is [...]

Tags: ,