Kopieren Sie den Code -Code wie folgt:
<!
<html>
<kopf>
<title> select.html </title>
<meta http-equiv = "keywords" content = "keyword1, keyword2, keyword3">
<meta http-äquiv = "Beschreibung" content = "Dies ist meine Seite" >>
<meta http-äquiv = "content-type" content = "text/html; charset = utf-8">
<!-<link rel = "stylesheet" type = "text/ css" href = "./ styles.css">->
</head>
<body>
<select id = "mycourse" onchange = "getcours ();">
<Option value = "" "auswählen> -Bde einen Kurs auswählen- </Option>
</select>
<textArea id = "myares" rows = "10" cols = "30"> </textArea>
<script type = "text/javaScript" type = "text/javaScript">
<!-
var last_select_num = 3;
// Dynamisch den ersten Kurs hinzufügen
var myOption = document.createElement("option");
myOption.value = "java";
myopting.text = "java";
MyCourse.add (Myoption);
// Dynamisch den zweiten Kurs hinzufügen,
myoption = document.createelement ("Option");
myoption.Value = "Oracle";
myopting.text = "Oracle";
MyCourse.add (Myoption);
// Dynamisch den dritten Kurs hinzufügen,
myoption = document.createelement ("Option");
myoption.value = "javaee";
myopting.text = "javaee";
MyCourse.add (Myoption);
Funktion getCourt () {{)
Myares.Value += "Sie haben sich entschieden:" +mycourt.value +"/r/n";
}
->
</script>
</body>
</html>