MDN wants to learn about developers like you: https://qsurvey.mozilla.com/s3/MDN-dev-survey-2018-1

getSelectedItem

getSelectedItem( index )
Return type: element
When multiple items are selected, you can retrieve each selected item using this method. The argument index specifies the index in the list of the selected items, not the row number of the item. The item index is zero-based, thus this example will return the first selected item: getSelectedItem(0).

Document Tags and Contributors

 Contributors to this page: Sheppy, Marsf, Taschna, Dria
 Last updated by: Sheppy,