نسخ رمز رمز على النحو التالي:
<doctype html>
<html>
<head>
<title> SELECT.HTML </itlem>
<meta http-equiv = "الكلمات الرئيسية" content = "Keyword1 ، Keyword2 ، Keyword3">
<meta http-equiv = "description" content = "This is is my part" >>
<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 حدد الدورة التدريبية- </OPTION>
</select>
<textarea id = "myares" rows = "10" cols = "30"> </textarea>
<script type = "text/javaScript" type = "text/javaScript">
<!-
var last_select_num = 3 ؛
// أضف الدورة الأولى ديناميكيًا
var myoption = document.createElement ("Option") ؛
myOption.value = "java" ؛
myopting.text = "java" ؛
mycourse.add (myoption) ؛
// إضافة الدورة الثانية بشكل ديناميكي ،
myOption = document.createElement ("الخيار") ؛
MyOption.value = "Oracle" ؛
myopting.text = "oracle" ؛
mycourse.add (myoption) ؛
// إضافة الدورة الثالثة بشكل ديناميكي ،
myOption = document.createElement ("الخيار") ؛
myOption.value = "javaee" ؛
myopting.text = "javaee" ؛
mycourse.add (myoption) ؛
وظيفة getCourt () {{)
myares.value += "أنت تختار:" +mycourse.value +"/r/n" ؛
}
->
</script>
</body>
</html>