document.forms[0].dropdownlist.option[i] = new Option("Text","value");

解决方案 »

  1.   

    var newOpt= document.createElement("OPTION");document.forms[0].dropdownlist.options.add(newOpt)//dropdownlist 在页面里直接引用
      

  2.   

    //写在你的JavaScript方法中
    var newOpt = document.crateElement("OPTION");
    newOpt.text ="";
    newOpt.value = "文本框获得的变量值";
    document.forms[0].dropdownlist.options.add(newOpt);
    //dropdownlist控件在页面里一样引用
      

  3.   

    really ? 好像直接引用Option 是不行,在客户端添加还要在后面修改它嘛?
      

  4.   

    document.all("dropdownlist_name").options.add(new Option(Name[selIndex][i],"name"+i));