I have something like this in HTML:
<select name="selection">
<option id="1">First Option</option>
...
</select>
I would like to get the ID of the selected option in JSP. request.getParameter(“selection”) gives me the text of the option but I want the id.
Keeping
idandvaluesame will work for you.e.g.