how delete objects created dynamically?
I created a list in my html. If user selects an option the system shows some values from an array. All values to be displayed are drawing inside a table (I use document.createElement and document.createTextNode()), but when the user selects from the list another option the system adds to the table (with the result form first selection), the information corresponding to the second selection. How can I delete the objects created in the first selection?