Hi,
I have difficulty understanding how square brackets work in JavaScript
and this is causing me difficulty retrieving the values of the options
of my Select controls.
My form contains many select boxes. Their names are stored in
variables(in this case concat is the select control name)
and I have no trouble accessing methods for the select object ie:
document.Allan.elements[concat].selectedIndex;
I would like to get the value of the selectedIndex but I am having
difficulty because I don't know the right syntax. I'm looking for a
statement like the one that follows but uses variables
document.form.theDay.options[2].text
Could some one help me use the right syntax?
Thanks,
Larry