kingberrill of Javascript
7/7/2016 - 12:27 PM

Get Dropdown Option Values

Get Dropdown Option Values

function getDropdown() {
    var selectBox = document.getElementById("divider");
    var selectedValue = selectBox.options[selectBox.selectedIndex].value;
    alert(selectedValue);

}