[JavaScript] Getting Option Index based on Option Value

by Ken Creason <webmaster(at)fcs.net>

 Date:  Tue, 21 Nov 2000 16:24:23 -0800
 To:  hwg-languages(at)hwg.org
  todo: View Thread, Original
I am trying to get the index of an Option element
in a Select list based on its Value. 
This was my first (unsuccessful) guess:

document.forms[ 0 ].billingstate.options["CA"].index

How do reference this? I can't seem to find an example
in the O'reilly rhino book.

Any help: vastly appreciated.
_Ken Creason
webmaster(at)fcs.net

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA