谁能帮我看看下面这段代码错在哪了,为什么不能实现在textarea中显示select的选项,谢谢了!

来源:百度知道 编辑:UC知道 时间:2024/06/04 00:32:36
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script language="vbscript">
<!--
sub hello()
alert("欢迎光临本网站")
end sub
sub saygoodbye()
alert("欢迎你的下次光临")
end sub
sub yourselections()
dim temp,i,choicelength
choicelength=document.f1.s1.options.Length
if choicelength>0 then
for i=0 to choicelength-1
if document.f1.s1.options(i).selected then
temp=document.f1.s1.optio

你的option也没有结束啊!

<option value="database">数据库</option>
<option value="mutimedia">多媒体</option>
<option value="c programe">c语言</option>
<option value="discrete math">离散数学</option>
<option value="English">英语</option>

option是双标记