Match the text value with the value you are given. If it is matched with the text of the option you can set the selectedIndex to that.
var dropdownlistbox = document.getElementById("DropdownID")
for(var x=0;x < dropdownlistbox.length -1 ; x++)
{
if(givenValue == dropdownlistbox.options[x].text)
dropdownlistbox.selectedIndex = x;
}
if you know the index then directly you can give like this
document.getElementById("DropDownID").selectedIndex = x;