Demo of preselecting an item in a Drop Down List with JavaScript

Type in a name, like Sam, and click the Set Name button to select the item in the list