谢谢大家!

解决方案 »

  1.   

    document.getElementById("selectId").options[i].value;
      

  2.   


    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    <META NAME="Generator" CONTENT="EditPlus">
    <META NAME="Author" CONTENT="">
    <META NAME="Keywords" CONTENT="">
    <META NAME="Description" CONTENT="">
    </HEAD>
    <script>
    function getselectid(){
    selectid = document.getElementById("agmt_select_estateid").value;
    alert(selectid);
    }
    </script><BODY>
          <select name="agmt_select_estatename" id="agmt_select_estateid">
           <option value="null">请选择</option>
    <option value="未发布">未发布</option>
            <option value="已发布">已发布</option>
          </select>
      <input type="button" value="提交" onclick="getselectid();"/>
    </BODY>
    </HTML>