PDA

View Full Version : Help with getting value from drop down



jason_kelly
10-07-2011, 02:40 PM
Hello,

I need your help in creating a function that would allow easy retrieval of a value from a drop down box.

Example,

I have a MDB database with the following Header and Values:

[Colors]
red
blue
green
yellow
black
white

[====DROP DOWN====]
red
blue
green
yellow
black
white


How would I go about selecting the color 'yellow' from the drop down box not using the selectedIndex with Javascript

Ex. GetColor(yellow)

It would then, from the drop down menu, select the color yellow.

I cant seem to wrap my head around this one.

Any help is greatly appreciated.

Cheers