SyntaxFix
Write A Post
Hire A Developer
Questions
var selectoption = document.getElementById("dropdown"); var optionText = selectoption.options[selectoption.selectedIndex].text;