Folks,
Is there a way I can get the Option that has been selected in the page. I know that we can get optionValue by request.getParameter("dropDown"); I want to able to capture the option also i.e if the user selects <option value="1">first</optiont>, can I get Option name "first" that the user has selected?
<select name="dropDown">
<option value="1">first</optiont>
<option value="2">second</optiont>
</select>
Is there a way I can get the Option that has been selected in the page. I know that we can get optionValue by request.getParameter("dropDown"); I want to able to capture the option also i.e if the user selects <option value="1">first</optiont>, can I get Option name "first" that the user has selected?
<select name="dropDown">
<option value="1">first</optiont>
<option value="2">second</optiont>
</select>