I have a jQuery Mobile code like this:
<select name="selectmenu1" id="selectmenu1">
<option value="o1">
a
</option>
<option value="o2">
b
</option>
<option value="o3">
c
</option>
<option value="o4">
d
</option>
</select>
Now I want to get the selected value after the user changed the selection.
How to do this with jQuery?
It’s very simple…
jsFiddle.
If you wanted the selected element’s text node(s), use this instead…
jsFiddle.