动态添加option及createElement使用示例
发布时间:2017-01-14 来源:查字典编辑
摘要:复制代码代码如下:select.html--请选择一门课程--
复制代码 代码如下:
<!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">
<>
</head>
<body>
<select id = "myCourse" onchange = "getCourse();">
<option value = "" selected>--请选择一门课程--</option>
</select>
<textarea id = "myares" rows="10" cols="30"></textarea>
<script type="text/javascript" type = "text/javascript">
<>
</script>
</body>
</html>