Hi,
Du hast irgendwo Fehler drinne, schau Dir mal an das mit tabelle an:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<script type="text/javascript">
var inpNam = "inp";
var cnt = 0;
function goForIt() {
cnt ++;
var inp = document.createElement("input");
inp.style.width = "100px";
inp.setAttribute("type","text");
inp.setAttribute("name",inpNam + cnt);
tr = document.createElement("tr");
td1 = document.createElement("td");
td2 = document.createElement("td");
txt = document.createTextNode(inpNam + cnt);
td1.appendChild(txt);
td2.appendChild(inp);
tr.appendChild(td1);
tr.appendChild(td2);
document.getElementById("test").appendChild(tr);
}
</script>
</head>
<body>
<form Name="feld" id="dynform">
<table id="test" cellspacing="0" cellpadding="0" border="1">
<tr>
<td colspan="2">
<input type="submit" value="Send">
<input type="button" value="New" onclick="goForIt()">
</td>
</tr>
</table>
</form>
</body>
</html>
Gruesse, Joachim
Am Ende wird alles gut.