indexvalue= document.actionForm.id.value;
改成 indexvalue= document.getElementById("id").value;试试

解决方案 »

  1.   

    function set(){
        var indexvalue;
        indexvalue= document.actionForm.id.value;
        alert(indexvalue);
    }
    这里正常显示了选择值对应的ID。
    但是在Action中,actionForm.getId时,得到的是空。。
    取不到值。。
      

  2.   

    <select name="select" onchange="set(this.options[this.selectedIndex].value);"> 不过在js里调用submit提交之后,form里应该会取到值的啊
    根本不需要在js里面取得选定的值,除非想做check