A Question on <select><option> tag
Hi,
i have question on html select tag. i am using the following code in jsp.
Code:
<form name="f1" action="anyservlet">
<select name="letter">
<option value="1">A</option>
<option value="2">B</option>
<option value="3">C</option>
<option value="4">D</option>
</select>
<input type="submit" name="submit" value="submit">
</form>
now what i want is to display 'A','B','C','D' in the drop down list.but while submitting this form to "anyservlet" i want to get the value written in the option tag.
example: 'B' is chosen and this form is submitted the value i want is '2'.
is that possible??if yes, then how??
thank you