Does anyone know how can I get the value from all the <option> with javascript?
example:
<select name="test" id="test">
<option value="1">one</option>
<option value="2">two</option>
<option value="3">three</option>
</select>
How can I using javascript to retrieved all the value from <option> and output:
1
2
3
Pie: