Hi<br>Ich hab ein HTML-Formular in der folgenden Form erstellt:<p>
<PRE>
<form name="formular" action="seite.php" method="POST">
<table id="Tabelle1">
<tr>
<th>überschrift1</th>
<th>überschrift2</th>
</tr>
<tr>
<td>Feld1</td>
<td>Feld2</td>
</tr>
[Hier kommen durch PHP dynamisch generiert mehrere Zeilen der gleichen Art wie gerade eben hinzu]
<tr>
<td colspan=2>Feld x</td>
</tr>
<tr>
<td colspan=2>
<table id="Tabelle2">
<tr>
<td>
<input type="radio" name="Auswahl" value="2">Option 1
</td>
<td>
<input type="radio" name="Auswahl" value="3">Option 2
</td>
<td>
<input type="radio" name="Auswahl" value="8">Option 3
</td>
<td>
<input type="radio" name="Auswahl" value="8">Option 4
</td>
</tr>
<tr>
<td>
<input type="radio" name="Auswahl" value="4">Option 5
</td>
<td>
<input type="radio" name="Auswahl" value="5">Option 6
</td>
<td>
<input type="radio" name="Auswahl" value="6">Option 7
</td>
<td>
<input type="radio" name="Auswahl" value="7">Option 8
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<center>
<input type="submit" value="Abschicken">
</center>
</td>
</tr>
</table>
</form>
</PRE>
Jetzt möchte ich erreichen, dass (immer wenn Option 1 ausgewählt ist) in der Tabelle mit id="Tabelle1" eine weitere Zeile angezeigt wird. Sobald wieder eine andere Option ausgewählt wird, soll diese Zeile wieder verschwinden.<br>Weiß jemand, wie ich das realisieren kann?<p>danke schonmal, Sebastian
<PRE>
<form name="formular" action="seite.php" method="POST">
<table id="Tabelle1">
<tr>
<th>überschrift1</th>
<th>überschrift2</th>
</tr>
<tr>
<td>Feld1</td>
<td>Feld2</td>
</tr>
[Hier kommen durch PHP dynamisch generiert mehrere Zeilen der gleichen Art wie gerade eben hinzu]
<tr>
<td colspan=2>Feld x</td>
</tr>
<tr>
<td colspan=2>
<table id="Tabelle2">
<tr>
<td>
<input type="radio" name="Auswahl" value="2">Option 1
</td>
<td>
<input type="radio" name="Auswahl" value="3">Option 2
</td>
<td>
<input type="radio" name="Auswahl" value="8">Option 3
</td>
<td>
<input type="radio" name="Auswahl" value="8">Option 4
</td>
</tr>
<tr>
<td>
<input type="radio" name="Auswahl" value="4">Option 5
</td>
<td>
<input type="radio" name="Auswahl" value="5">Option 6
</td>
<td>
<input type="radio" name="Auswahl" value="6">Option 7
</td>
<td>
<input type="radio" name="Auswahl" value="7">Option 8
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<center>
<input type="submit" value="Abschicken">
</center>
</td>
</tr>
</table>
</form>
</PRE>
Jetzt möchte ich erreichen, dass (immer wenn Option 1 ausgewählt ist) in der Tabelle mit id="Tabelle1" eine weitere Zeile angezeigt wird. Sobald wieder eine andere Option ausgewählt wird, soll diese Zeile wieder verschwinden.<br>Weiß jemand, wie ich das realisieren kann?<p>danke schonmal, Sebastian
Comment