Results 1 to 11 of 11
Thread: appendChild creates TBODY
Apr 24, 2007, 19:46 #1
- Join Date
- Apr 2006
- 2 Post(s)
- 0 Thread(s)
appendChild creates TBODY
I have a TABLE element with ID attribute "newCreationTable".
Then, I have the following piece of code below to add a row to the table :
var newRow = document.createElement('tr'); var newCreationTable = document.getElementById('newCreationTable'); newCreationTable.appendChild(newRow);
How can I prevent the creation of the TBODY tag?
Reason why I want to prevent this, is because when I execute the code shown above for the 2nd, 3rd, etc.. time, the TABLE is malformed, since the TR elements are created after the TBODY closing tag.
Thanks for your help!And so I got lost in code...completely asphyxiated by it...
Premium WordPress plugins - Tribulant Software