get data in select option code example
Example: retrieve data from option select js
//For <select id='brew'> with multiple options :
var brew = document.getElementById('brew');
var myImportantValue = brew.options[brew.selectedIndex].value;
//For <select id='brew'> with multiple options :
var brew = document.getElementById('brew');
var myImportantValue = brew.options[brew.selectedIndex].value;