一个比较弱智的问题
在vbs 中怎么才能引用select
中某一项被选中的项的值
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<SELECT ID="oSelect" NAME="Cars" size="5" >
<OPTION VALUE="宝马" SELECTED>宝马</OPTION>
<OPTION VALUE="保时捷">保时捷</OPTION>
<OPTION VALUE="奔驰">奔驰</OPTION>
</SELECT>
<input name="but3" type="button">
<script language="VBScript">
sub but3_onclick
set oOption = document.createElement("OPTION")
oSelect.options.add(oOption)
oOption.innerText = "Two"
oOption.value = "2"
end sub
sub oSelect_onchange
dim mystr
mystr=oselect.optios[oselect.selectedIndex].value
window.alert mystr
end sub
</script>
</body>
</html>
出错在哪里啊