how do i return all the options from select?
-
<select name="test" id="test">
<option value="1">a</option>
<option value="2">b</option>
</select>
how do i return all the options as a array? I am trying to find a equivalent to javascript's .options[] method, but I just cannot find it.