Question: how to set the dropdown selected value in javascript?
Answer: In JavaScript, selectedIndex property is used to set the value of a select box element. The selectedIndex property sets or returns the index of the selected value in a drop-down list.