I can, for the most part, create new td’s and tr’s dynamically and get form elements added to table cells, but my problem is how to get them additionally into the form? Is it just a matter of naming?
instead of
var ourtable=document.getElementById(‘table1’);
var tb=document.createElement(‘tbody’);
var tr=document.createElement(‘tr’); // – now create the tr and td elements
var td=document.createElement(‘td’);
var name = “textbox” + num;
[COLOR=red]var yourName=document.createElement(‘input'[/COLOR] );
yourName.setAttribute(‘type’,’text’);
yourName.setAttribute(‘name’,name);
yourName.setAttribute(‘value’,”);
td.appendChild(yourName);
tr.appendChild(td);
should it be something like
[COLOR=red]var document.form1.elements.yourName=document.createElement(‘input’
???