JS 根据DropDownList的Text选中某一项

 

var DropDownListCurrencyNew 
    
=  document.getElementById('DropDownListCurrencyNew');
for(i = 0; i < DropDownListCurrencyNew.options.length; i++)
{
    
if(DropDownListCurrencyNew.options[i].text == arrayValue[6])    
           {
               DropDownListCurrencyNew.options[i].selected 
= true
        }

}
;

posted on 2007-03-19 18:20  Sammy  阅读(581)  评论(0编辑  收藏  举报

导航