本帖最后由 dinkhe 于 2014-08-30 11:02:24 编辑

解决方案 »

  1.   


        <script language="javascript">  
            function changeF()  
            {  
               document.getElementById('makeupCo').value=  
               document.getElementById('makeupCoSe').options[document.getElementById('makeupCoSe').selectedIndex].value;  
            }  
        </script>  
          
        <span style="position:absolute;border:1pt solid #c1c1c1;overflow:hidden;width:188px;  
            height:19px;clip:rect(-1px 190px 190px 170px);">  
        <select name="makeupCoSe" id="makeupCoSe" style="width:190px;height:20px;margin:-2px;" onChange="changeF();">  
            <option id='1' value='java'>java</option>  
            <option id='2' value='c++'>c++</option>  
            <option id='3' value='python'>python</option>  
            <OPTION id="99999" VALUE="" SELECTED>  
        </select>  
        </span>  
        <span style="position:absolute;border-top:1pt solid #c1c1c1;border-left:1pt   
            solid #c1c1c1;border-bottom:1pt solid #c1c1c1;width:170px;height:19px;">  
            <input type="text" name="makeupCo" id="makeupCo" value="请选择或输入" style="width:170px;height:15px;border:0pt;">  
        </span>  
      

  2.   

    通过js获取select选择值,填充到表单其他input,点击按钮执行submit,就会把填充值提交到服务端。
      

  3.   

    HTML5 的这可不也是很好吗 http://www.w3school.com.cn/tiy/t.asp?f=html5_datalist