Hope that helps someone. Definition and Usage. Instead of iteration all over the options or using JQuery you can do using core JS in simple steps: So you must know the value of the option to select. Who enforces the insurrection rules in the 14th Amendment, section 3? Note: If the drop-down list allows multiple selections it will only return the index of the first option selected. :), HTML SELECT - Change selected option by VALUE using JavaScript, w3.org/TR/html5/forms.html#the-form-element, w3.org/TR/html5/forms.html#dom-form-nameditem, w3.org/TR/html5/browsers.html#named-access-on-the-window-object. You have a select element, and you need to “select” one of its options based on one of its values. – There is a button type=button (not type=submit) in each form. With jQuery, you can use text() or html() method to get the selected text from a drop-down. Solution: – The option value of the select box is website URL. How to enlarge a mask in Photoshop non-destructively ("bleeding", "outer glow")? Alternatively, you can use the.prop () method to set the selectedIndex property which reflects the index of the selected