paula dougherty
08-30-2006, 04:30 PM
I'm STILL building tables on the fly. I want every other row to remain hidden as it'll contain data for further processing relating to the row above it. I do not want this info displayed.
So I can insert a row using the code below but how do I indicate that I want this row to be hidden ??????
function addRow(tableID)
{
var tableRef = document.getElementById(tableID);
// Insert a row in the table at row index 0
var newRow = tableRef.insertRow(0);
// Insert a cell in the row at index 0
var newCell = newRow.insertCell(0);
newCell.id = 'date';
newCell.name = 'date;
newCell.innerHTML = '10/10/16'
newRow.appendChild(newCell);
// Call addRow() with the ID of a table
addRow('TableA');
So I can insert a row using the code below but how do I indicate that I want this row to be hidden ??????
function addRow(tableID)
{
var tableRef = document.getElementById(tableID);
// Insert a row in the table at row index 0
var newRow = tableRef.insertRow(0);
// Insert a cell in the row at index 0
var newCell = newRow.insertCell(0);
newCell.id = 'date';
newCell.name = 'date;
newCell.innerHTML = '10/10/16'
newRow.appendChild(newCell);
// Call addRow() with the ID of a table
addRow('TableA');