Aşağıda ki kodu kullanabilirsiniz.
function current_selected( select_id, option_value ){
var selectElement = document.getElementById( select_id );
var selectOptions = selectElement.options;
for ( var opt, j = 0; opt = selectOptions[j]; j++ ) {
if (opt.value == option_value) {
selectElement.selectedIndex = j;
break;
}
}
}
current_selected( 'select-id', 'current-option' )