这个用js好实现。
代码我是用,发消息给我,留下你的E-mail,明天发给你。

解决方案 »

  1.   

    晕  这还说的不清楚啊?
     例: 下拉菜单中选项有 A B C三个当选A时 自动把数组中的内容如 1 2 3 分别填入三个文本框中
    当选B时 自动把数组中的内容如 4 5 6 分别填入三个文本框中
    当选C时 自动把数组中的内容如 7 8 9 分别填入三个文本框中
      

  2.   

    <select id="sel" onchange="setVal()">
    <option value='1,2,3'>A</option>
    <option value='4,5,6'>B</option>
    <option value='7,8,9'>C</option>
    </select>
    <input type='text' id='a'/>
    <input type='text' id='b'/>
    <input type='text' id='c'/>
    <script language="javascript">
    function setVal(){
    var _selObj = document.getElementById("sel");
    var _selVal=_selObj.options[_selObj.selectedIndex].value;
    var _splitVal = _selVal.split(",");
    try{
    document.getElementById("a").value=_splitVal[0];
    document.getElementById("b").value=_splitVal[1];
    document.getElementById("c").value=_splitVal[2];
    }catch(e){
    alert("Error in Page!");
    }
    }
    </script>
      

  3.   

    学生<select id="student" onchange="setVal(this)">
    <option value='' xuehao="" xinbie=""></option>
    <option value='1' xuehao="001" xinbie="男">张三</option>
    <option value='1' xuehao="002" xinbie="男">李四</option>
    <option value='1' xuehao="003" xinbie="女">王五</option>
    </select><br>
    学号<input type='text' name="xuehao" readonly><br>
    性别<input type='text' name="xinbie" readonly><br><script language="javascript">
    function setVal(obj){
    var selectedOption=obj.options[obj.selectedIndex];
    document.getElementById("xuehao").value=selectedOption.xuehao;
    document.getElementById("xinbie").value=selectedOption.xinbie;}
    </script>
      

  4.   

    如果select数据是从数据库中读取过来的,改怎么写代码?请楼上的给指导指导。====天堂世家====
    MSN:[email protected]
    QQ:85850256
      

  5.   

    moodboy1982(虎落平川被犬欺):  不能拿出来共享一下吗?