动态添加option及createElement使用示例
摘要:复制代码代码如下: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>
【动态添加option及createElement使用示例】相关文章:
★ javascript中createElement的两种创建方式
★ JavaScript中Number.MIN_VALUE属性的使用示例
★ document.getElementById的一些细节
上一篇:
jquery 鼠标滑动显示详情应用示例
下一篇:
购物车选中得到价格实现示例