html option selected not working

The index starts at 0. Note: If the drop-down list allows multiple selections it will only return the index of the first option selected. Keyboard users can select multiple contiguous items by: Focusing on the element whose multiple attribute is not set, only one single