javascript set selected option

When present, it specifies that an option should be pre-selected when the page loads. The selectedIndex property sets or returns the index of the selected option in a drop-down list. Note: If the drop-down list allows multiple selections it will only return the index of the first option selected. The selected attribute is a boolean attribute. The read-only HTMLSelectElement property selectedOptions contains a list of the