Click to See Complete Forum and Search --> : how to extract name of selected option


aksjkr
08-20-2008, 06:08 AM
Hi All,

In my code I need to pass the name of the option selected to next jsp page,
for ex
<select name ="fruits">
<option value="a">Apple</option>
<option value="b>Banana</option>
<select>
In case the option selected is Apple I need to extract the name "Apple " but not the value of the option i.e "a"
Hope I am clear..
Please reply to the earliest

chazzy
08-20-2008, 08:51 AM
then you should change the value to Apple rather than a.