//Get the HTML controlvar select = document.getElementsByName("aaa")[0];select.selectedIndex = index;//Create a new Option objectnew Option(text,value)new option(text,value,defaultSelected,selectedtext: String, specify option The object's text attribute ( namely <option></option> Between words )value: String, specify option The object's value attributedefaultSelected: Boolean value, specified option The object's defaultSelected attributeselected: Boolean value, specified option The object's selected attribute//Add options to selectselect.add(new Option(text,value))// deleteselect.options.remove(index)//Delete all at onceselect.length = 0;