Copy code code as follows:
<! Doctype html>
<html>
<head>
<Title> Select.html </Title>
<meta http-equiv = "keywords" content = "keyword1, keyword2, keyword3">
<meta http-equiv = "description" content = "this is my page">>
<meta http-equiv = "content-type" content = "text/html; charset = utf-8">
<!-<link REL = "STYLESHEET" Type = "Text/CSS" HREF = "./ Styles.css">->
</head>
<body>
<select ID = "MyCourse" onChange = "GetCourse ();">
<option value = "" select>-Please select a course- </option>
</select>
<textarea ID = "MyARES" ROWS = "10" COLS = "30"> </Textarea>
<script type = "text/javascript" type = "text/javascript">
<!--
var last_select_num = 3; // Add to query from the database
// Dynamically add the first course
var myoption = document.createelement ("option");
myoption.value = "java";
myopting.text = "java";
mycourse.add (myoption);
// Dynamically add the second course,
myoption = document.createElement ("option");
myoption.value = "Oracle";
myopting.text = "Oracle";
mycourse.add (myoption);
// Dynamically add the third course,
myoption = document.createElement ("option");
myoption.value = "javaee";
myopting.text = "javaee";
mycourse.add (myoption);
function getcourt () {{)
myARES.VALUE += "You chose:" +mycourt.value +"/r/n";
}
->
</script>
</body>
</html>