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)
.