It can sometimes be useful to access the index of a selected item in a picklist. This can be accomplished in .NET using  _Picklist.ValueIndex.  To get the index in JavaScript, however, you will need to iterate over the array of picklist values and compare them to the selected picklist value.  

An example of this implementation is below.