hallo,
weil ich mich auch gerade mit Tabellen beschäftige, darf ich den Vorschlag machen, zunächst ein plausibles HTML zu erstellen.
vielleicht so:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>table tour</title>
<style type="text/css">
#tbl1 {
width:300px;
border:0;
}
#tbl1 th {background-color:beige;}
#tbl1 td {padding:5px;}
</style>
<script type="text/javascript">
function new_tr(elem) {
alert("du hast >"+elem.value +"< geclickt, später mehr");
return;
}
function del_tr(elem) {
alert("du hast >"+elem.value +"< geclickt, später mehr");
return;
}
</script>
</head>
<body>
<form action="..." onsubmit="return false">
<table id="tbl1">
<thead>
<tr>
<th width="50%">Artikelnummer</td>
<th width="25%">Menge</td>
<td width="25%"></td>
</tr>
</thead>
<tbody>
<tr>
<td ><input name="art_nr" type="text" size="20"></td>
<td ><input name="art_menge" type="text" size="10"></td>
<td ><input type="button" value="Löschen" onclick="del_tr(this)"></td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan=3>
<input type="button" name="neu" onclick="new_tr(this)"
value="weiteres Feld"> <input type="submit"
name="Submit2" value="Bestellung abschicken">
</td>
</tr>
</tfoot>
</table>
</form>
</body>
</html>
Gruß plan_B
--
*®*´¯`·.¸¸.·
*®*´¯`·.¸¸.·