在<select...>..</select>中选中值后直接在<input type=...>中显示出来!不要页面刷新!

解决方案 »

  1.   

    你是不是说比如在一个text中显示出来你选 的值?
    如果这样的话用JS可以实现
      

  2.   

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    <script language="javascript">
    function change()
    {
    document.forms[0].text.value=document.forms[0].test.value;
    }
    </script>
    </head>
    <body>
    <form>
    <input type="text" name="text">
    <select name="test" onChange="change();">
    <option value="1">1</option>
    <option value="2">2</option>
    </select>
    </form>
    </body>
    </html>
    这样就行了
      

  3.   

    function change(obj){
      document.forms[0].text.value=obj.options[this.selectedIndex].value;
    }<select name="test" onChange="change(this);">
    <option value="1">1</option>
    <option value="2">2</option>
    </select>