Dynamic Table - TechRepublic
General discussion
June 20, 2003 at 09:08 AM
eboomjb

Dynamic Table

by eboomjb . Updated 23 years ago

I’m trying to collect a bunch of data on a page and display it in a table then submit the arrays to validation when the user is ready. I’m having trouble getting the table to show up (dynamically creating tr,td etc)…this works in Netscape, but notin IE 5.0…any suggestions out there?

var tbody = document.getElementById(‘hiVolData’);
var row = document.createElement(‘tr’);
var td = document.createElement(‘td’);
td2.setAttribute(‘class’,’dataTblHdr’); td2.appendChild(document.createTextNode(“ref#”));
row.appendChild(td);
tbody.appendChild(row);

Thanks!

This discussion is locked

All Comments