Asking for help, clarification, or responding to other answers. The selectedIndex property sets or returns the index of the selected option in a drop-down list. The second and third dropdown list will display different options, depending on the value selected in the parent dropdown list. Simplest code that worked is below: var newValue1 = 'Mango'var selectElement = document.getElementById('myselectid');selectElement.options[selectElement.selectedIndex].value = newValue1;selectElement.options[selectElement.selectedIndex].textContent = newValue1; In a Javascript combobox you can set a selected value as you wish. Why does my advisor / professor discourage all collaboration? Using this reference, the selected Text and Value is determined and is displayed using JavaScript alert message box. Otherwise, no, you can't. 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. How to refresh default display option in select by javascript or jquery? Asking for help, clarification, or responding to other answers. Red Blue Green Yellow Orange. Why do small patches of snow remain on the ground many days or weeks after all the other snow has melted? Return Value: A String, representing the value of the value attribute of an