Question: how to get selected value from html dropdownlist in javascript?
Answer: var getValue = document. getElementById('ddlViewBy'). selectedOptions[0]. value; alert (getValue); // This will output the value selected.