The VALUE attribute of the OPTION has nothing to do with it's SELECT array index. The SELECT array index is always an ordinal number that correlates to the OPTION's position in the HTML.
If you wanted to index the array by specifying a constant (A/B/C/D/E), you should be able to add a NAME attribute to the OPTION tag:
<OPTION NAME="A" ... >
Then you could use this syntax to test it:
if (mainform.Salary.options["A"].selected) {
Nevermind. The syntax is supported in the W3C HTML 4.01 specification, but it doesn't work in IE 5.5.
Bookmarks