Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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;
 
PREVIOUS NEXT
Tagged: #retrieve #data #option #select #js
ADD COMMENT
Topic
Name
1+2 =