Is there a way to delete a subset (continous) of child nodes?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello,

Does anybody knows how can you delete, in just one step, not using a
loop, a subset of the child nodes of a given DOM parent node? The
subset will be continous, so for example, if the parent node has 100
nodes, I want to delete nodes 10 through 75, and not nodes 5, 10, 25
etc.

I have a reference to the first and the last node in the list that has
to be removed. Also it's position in the list, if that helps.

Thank you,
Daniel

.



Relevant Pages