<select name=field>
<option value=1>Apple
<option value=2>Banana
<option value=3>Ananas
</select>
in a script i can use document.form.field.value in order to get the selected value (eg 1). But how can i get the selected DESCRIPTION (eg Apple). . .
After selecting a value i want another field on screen to be filled with a default description; but i need the code/value too!
Of course i can change the value of each option into <code><description> ("1Apple" etc) but is there a more elegant way?
br
Gerard
(-:
| Do it!
|
V
<option value=1>Apple
<option value=2>Banana
<option value=3>Ananas
</select>
in a script i can use document.form.field.value in order to get the selected value (eg 1). But how can i get the selected DESCRIPTION (eg Apple). . .
After selecting a value i want another field on screen to be filled with a default description; but i need the code/value too!
Of course i can change the value of each option into <code><description> ("1Apple" etc) but is there a more elegant way?
br
Gerard
(-:
| Do it!
|
V