Getting the text from a drop-down box

86

Getting the text from a drop-down box -

var skillsSelect = document.getElementById("newSkill");
var selectedText = skillsSelect.options[skillsSelect.selectedIndex].text;

Comments

Submit
0 Comments