I'm using this function to write the values from a dynamic table. I call it dyanmic because is possible to add and remove new lines.
function GetCellValues() {
var table = document.getElementById('mytable');
for (var r = 0, n = table.rows.length; r < n; r++) {
for (var c = 0, m = table.rows[r].cells.length; c < m; c++) {
alert(table.rows[r].cells[c].children[0].value);
}
}
}
But if I change alert for document.write only the first cell value.
any suggestion?
Regards