实例好些。
如
<script language=javascript>
functioon check()
{
var getlt=xxx.list.value;
alert("您选择的条目是:"+getlt);
return false;
} </script>
<form name=xxx onsubmit=return(check()) >
<select name=list>
<option>第一条</option>
<option>第二条</option>
</select>
<input type=submit value=提交>
</form>实际上就是。。表单名。例表框名。列表框值属性
如
<script language=javascript>
functioon check()
{
var getlt=xxx.list.value;
alert("您选择的条目是:"+getlt);
return false;
} </script>
<form name=xxx onsubmit=return(check()) >
<select name=list>
<option>第一条</option>
<option>第二条</option>
</select>
<input type=submit value=提交>
</form>实际上就是。。表单名。例表框名。列表框值属性
<option value = "1">第一条</option>
<option value = "2">第二条</option>
</select>要拿到"1"或者"2",用document.xxx.list.value;要拿到下拉菜单显示的值,即"第一条"或者"第二条",用
var index = document.xxx.list.selectedIndex;
然后
document.xxx.list.options[index].text
就取到了,要传到别的页面就当参数传过去就好
document.xxx.list.options[index].text
var index = document.xxx.list.selectedIndex;
document.xxx.list.options[index].text2,
document.xxx.value();