Drop-down boxes

D

Dan

I would like to have my form retain not only the value of the selection but
also the selection is self.
Using "Loc_Code =
document.all.Loc.options[document.all.Loc.selectedIndex].value" I get the
selection. How do I get the selected?

Example:
<select DataValueField size="1" name="Loc">
<option value="ALB_HPD">Albany, Georgia USA</option>
<option value="TEX_ADM">Texarkana, Arkansas USA</option>
<option value="TUP_HPD">Tupelo, Mississippi USA</option>
</Select>
<input Type="text" name="Loc_Code">
I would like form field "Loc" to display "Albany, Georgia USA" and form
field "Loc_Code" to display "ALB_HPD.
 
S

Stefan B Rusynko

See http://irt.org/script/form.htm#10.1

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


|I would like to have my form retain not only the value of the selection but
| also the selection is self.
| Using "Loc_Code =
| document.all.Loc.options[document.all.Loc.selectedIndex].value" I get the
| selection. How do I get the selected?
|
| Example:
| <select DataValueField size="1" name="Loc">
| <option value="ALB_HPD">Albany, Georgia USA</option>
| <option value="TEX_ADM">Texarkana, Arkansas USA</option>
| <option value="TUP_HPD">Tupelo, Mississippi USA</option>
| </Select>
| <input Type="text" name="Loc_Code">
| I would like form field "Loc" to display "Albany, Georgia USA" and form
| field "Loc_Code" to display "ALB_HPD.
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top