Click to See Complete Forum and Search --> : need help with children


retro
04-18-2003, 11:00 PM
Hi! I'm new and I have a question so here goes.

I'm working with element creation and text. Basically, I have an ultimate parent element that acts as a pane for a number of text views. To create a text view, I create a bunch of elements and populate them with text nodes. I attach these elements as children to the pane.

My question is, is there a way to remove all the child elements along with their nodes from my pane?

Any clues would be great.

Josh

Jona
04-18-2003, 11:14 PM
I believe there is a built-in array of all child nodes of a parent node. Unfortunately, I'm not sure what it is... You could use it and a for() loop to remove all children. You could also remove each child individually.

khalidali63
04-19-2003, 01:55 AM
This script uses DOM methods to do what you want,it might help

http://68.145.35.86/skills/javascripts/DOMTableManipulation.html

:D