If you want to get the index from the select you could render your options using List.indexedMap
. Then pass the index to the message somehow.
But also, why do you want the index? Usually there is better solution in Elm that doesn’t involve using indexes.