How do you get the currently selected of a element via JavaScript?
Using the selectedOptions property:
selectedOptions
var yourSelect = document.getElementById("your-select-id"); alert(yourSelect.selectedOptions[0].value);
It works in all browsers except Internet Explorer.