实例好些。 

<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>实际上就是。。表单名。例表框名。列表框值属性

解决方案 »

  1.   

    变量getIt是form里的值,当然可以了,不过好像有点小问题,下拉菜单为:<select name=list>
             <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
    就取到了,要传到别的页面就当参数传过去就好
      

  2.   

    var index = document.xxx.list.selectedIndex;
    document.xxx.list.options[index].text
      

  3.   

    1,
    var index = document.xxx.list.selectedIndex;
    document.xxx.list.options[index].text2,
    document.xxx.value();