Answers for "how to get the output of a select option in javascript"

1

output selected option in javascript

var e = document.getElementById("selectElementID");
var value=e.options[e.selectedIndex].value;// get selected option value
var text=e.options[e.selectedIndex].text;
Posted by: Guest on March-17-2020

Code answers related to "how to get the output of a select option in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language