Getting the text from a drop-down box
Based on your example HTML code, here’s one way to get the displayed text of the currently selected option: var skillsSelect = document.getElementById(“newSkill”); var selectedText = skillsSelect.options[skillsSelect.selectedIndex].text;