}

Articles tagged "html-select"

1 min readBeginner

JavaScript: Get Dropdown Selected Value

We will explain hot to retrieve the selected element using javascript. e.options[e.selectedIndex].value will return the value of the selected element where e is the variable obtained with document.getElementById("selector"). Check here a full jQuery example also. Read our tutorial for more details.