gustav: Tag <form> innerhalb eines Formulars erstellen?!

Beitrag lesen

Hallo,

ich habe das folgende Auswahlmenü, das allein super funktioniert, aber sobald ich es in einem Formular einfüge, funktioniert es nicht mehr, kann jemand mir vielleicht weiterhelfen?

********************************************************************

<html><head><title></title>
<script language="JavaScript">
function textValue()
{
var stationInteger, stationString;
stationInteger=document.stationform.stationselect.selectedIndex;
stationString=document.stationform.stationselect.options[stationInteger].text;
document.stationform.stationtext.value = "Das Ziel lautet: " + stationString +"!";
}
</script></head><body><form name="neueAufgabe">
<div align="center">
<form name="stationform">
<select name="stationselect" onChange="textValue()" size="1">
<option>Feedback
<option>Gästebuch
<option>Links
<option>Spiele
</select><br><br>
<input type="text" name="stationtext" value size="40" maxlength="35">
</form>
</div></form></body></html>

********************************************************************

das Problem ist, wenn ich es innerhalb eines Formular habe, bekomme ich das folgende JavaScript-Fehlermeldung:

Fehler: 'document.stationform.stationselect' ist Null oder kein Objekt

ansonsten, wenn es nicht innerhalb eines Formular steht funktioniert es einwandfrei, kann man eigentlich andere Möglichkeit als Formular nehmen?

Danke im Voraus.

Gruß
G.M.