<select class="dropdown" @onchange="update" id="selectMe">
@for (int i = 0; i < my_List.Count; i++)
{
<option value="@i">@my_List[i]</option>
}
</select>
<br>
<br>
@my_index
@code{
int my_index;
void update()
{
my_index = ......(?)
}
}
I want to access the index of the dropdownlist. Any help is appreciated.