returns the id of the selected item
as_array | boolean | specifies whether the result should always be returned as an array. The default value is false |
string|array | the id of the item |
var id = list.getSelectedId(); // id = someid
var id = list.getSelectedId(true); // id = [someid]