08/15: Auswahlmenü mit javaScript im Formular funktioniert nicht?!

Beitrag lesen

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

Da es in allen mir zur Verfügung stehenden Browsern einwandfrei läuft, hab ich für dein Problem nur eine Erklärung . Du mußt irgendwo einen ungültigen Zeilenumbruch drin haben, was von den Anderen bereits als 'open tags' moniert wurde !?

<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>
<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></body></html>

So long !! :o)