JS设置DropDownList选中某一条记录

 var objList = document.getElementById("<%=DropDownList_F27.ClientID%>");
            for (var i = 0; i < objList.options.length; i++) {
                if (objList.options[i].text == returnValue) {
                    objList.options[i].selected = true;
                }
            }

posted @ 2014-07-03 11:25  画风  阅读(722)  评论(0编辑  收藏  举报