Dropdown-Listen in HTML mit JavaScript steuern
Ich habe eine HTML-Seite erstellt, die ein Textfeld und einige Dropdown-Listen enthält. Wie ihr unten seht, ist dem Attribut onChange noch keine Funktion zugewiesen. Wie bringe ich die Dropdown-Listen dazu, ihre Values jeweils hinter Slot_0=, Slot_1= und Slot_2= zu schreiben, wenn man die Auswahl verändert?
http://ochilan.homeunix.net/DieGefae...p/Beispiel.jpg
Code:
<textarea rows="3" width="400" style="width:400px;">
Slot_0=Auswahl_1
Slot_1=Auswahl_1
Slot_2=Auswahl_1
</textarea>
Code:
<form>
<select name="Slot 1" width="200" size="1" onChange="">
<option value="Auswahl_1">Auswahl 1</option>
<option value="Auswahl_2">Auswahl 2</option>
<option value="Auswahl_3">Auswahl 3</option>
</select>
<select name="Slot 2" width="200" size="1" onChange="">
<option value="Auswahl_1">Auswahl 1</option>
<option value="Auswahl_2">Auswahl 2</option>
<option value="Auswahl_3">Auswahl 3</option>
</select>
<select name="Slot 3" width="200" size="1" onChange="">
<option value="Auswahl_1">Auswahl 1</option>
<option value="Auswahl_2">Auswahl 2</option>
<option value="Auswahl_3">Auswahl 3</option>
</select>
</form>