Question: how to set default selected value of dropdownlist in javascript?
Answer: The default value of the select element can be set by using the 'selected' attribute on the required option. This is a boolean attribute. The option that is having the 'selected' attribute will be displayed by default on the dropdown list. Example-1: Using the selected attribute.