newbiescooby
Technical User
Hi
I have the code:
function PopulateTableValue(row)
{
var row= row;
var tableRef = document.getElementById("Tbody");
var newRow = tableRef.insertRow(0);
for(var i = 0; i <= 0; i++)
{
var Content = ContentArray[row];
var newCell = newRow.insertCell(0);
var newText = document.createTextNode(Content);
newCell.appendChild(newText);
}
}
which builds a table with values from an array. I was wondering how i could change these labels into nested buttons or labels inside the table?
I have the code:
function PopulateTableValue(row)
{
var row= row;
var tableRef = document.getElementById("Tbody");
var newRow = tableRef.insertRow(0);
for(var i = 0; i <= 0; i++)
{
var Content = ContentArray[row];
var newCell = newRow.insertCell(0);
var newText = document.createTextNode(Content);
newCell.appendChild(newText);
}
}
which builds a table with values from an array. I was wondering how i could change these labels into nested buttons or labels inside the table?