function addRowToTable()
{
var tbl = document.getElementById('tblSample');
var lastRow = tbl.rows.length;
// if there's no header row in the table, then iteration = lastRow + 1
var iteration = lastRow;
var row = tbl.insertRow(lastRow);
// left cell
var cellLeft = row.insertCell(0);
var textNode = document.createTextNode(iteration);
// right cell
var cellRight = row.insertCell(1);
var el = document.createElement('input');
el.type = 'text';
el.name = 'txtrow' + iteration;
el.id = 'txtrow' + iteration;
el.size = 40;
cellRight.appendChild(el);
}
663 views
ik heb een probleem bij het dynamisch aanmaken van velden. Hij post nooit de waarden van de domobjecten in Firefox. In IE doet hij dit perfect hoe komt dit?