get selected text of html dropdown in javascript

JavaScript
var e = document.getElementById("selectElementID");
var value=e.options[e.selectedIndex].value;// get selected option value
var text=e.options[e.selectedIndex].text;
Source

Also in JavaScript: