/***********************************************
函数名: funGetValues1
作者:赵晓阳
做成日期: 2004-02-17
修改者/日期:
参数:   name: 列表名
                srcDlt: 列表ID
                code: 代码
************************************************/
function funGetValues(name,srcDlt,cncode,code,key)
{
        var sels=srcDlt;
        if(sels.tagName!="SELECT")
          sels=srcDlt.parentElement.parentElement.cells[0].children[0];        sels.innerHTML="";
        var xmldoc = new ActiveXObject("msxml");
        var xmlsrc = "/scheduler/jsp/include/OptKeyNameXml.jsp?Name="+name+"&Code="+code+"&CnCode="+cncode+"&Key="+key;
        xmldoc.URL = xmlsrc;
        var root=xmldoc.root;
        var children=root.children;
        //<!--没有符合条件的记录时,提示-->
        if(children==null){
          var opts=document.createElement("OPTION");
                sels.options.add(opts);
                opts.value="";
                opts.text="";
                sels.options[0].selected;
                sels.focus();
                return false;
        }
        //<!--将结果写入ShipId下拉列表框-->
        var rootLength=children.length;
        for(var i=0;i<rootLength;i++)
        {
                var opts=document.createElement("OPTION");
                sels.options.add(opts);
                opts.value=children.item(i).getAttribute("value");
                opts.code=children.item(i).getAttribute("code");
                opts.name=children.item(i).getAttribute("name");
                opts.parentId=children.item(i).getAttribute("ParentId");
                opts.text=children.item(i).getAttribute("name");
        }
        sels.options[0].selected;
        sels.focus();
        return false;
}这是一个动态取select对象内容的js函数
应该有些帮助吧