This gets the value of whatever is selected in my dropdown menu.
document.getElementById(\'newSkill\').value
I cannot however find out what
var selectoption = document.getElementById("dropdown"); var optionText = selectoption.options[selectoption.selectedIndex].text;