你的writeSelectBox函数呢我猜应该是
document.getElementById("select2").value;这个是你需要的值

解决方案 »

  1.   

    还是不知道怎么弄到INPUT里面去,对JAVASCIRPT一点不懂啊。近期会学一下。
    能帮我写一下代码么,让我的INPUT可以得到值。
      

  2.   

    function writeSelectBox(matrix, id, size, onchange, css) {
    var d = window.document; var ie4 = (document.all != null); if (ie4) {
    // alert("Before!");
    var s = createIEString(matrix, id, size, onchange, css);
    document.write(s);
    // alert("After!");
    // alert(s);
    } else {
    document.write(createXString(matrix, id, size, onchange, css));
    }
    }这个函数是在其它的文件里面的。 但我不知道怎么搞到INPUT里面去
      

  3.   

    你嵌套的函数太多了你想怎么获取这个select的值??是点按钮还是什么,点按钮的话就是上面我给你的代码,把代码放入click事件中去
      

  4.   

    writeSelectBox 是个带图片的下拉菜单,JAVASCRIPT的,我不知道怎么把 writeSelectBox 选定的值搞到INPUT里面去。
      

  5.   

    给writeSelectBox 一个事件onChange="getselectValue()"
    然后:
    function getselectValue()
    {
    document.getElementById("NumName").value=document.getElementById("select2").options[document.getElementById("select2").selectIndex].value;
    }你的目的就是将下拉框选中的值赋值给input框,是啊?select2就是你那个下拉框。如果不是,你把名字替换即可
      

  6.   

    为什么不反回想!让select改变的时候,把值赋给hidden的value
      

  7.   

    document.getElementById("select2").value;
      

  8.   

    不知道怎么给writeSelectBox 加一个事件onChange 。晕啊。完全不会啊。看来不学JS是不行了。