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; }} ;