selectedID([id])

Class: ComboBox.

Description:

Selects a first item whose id property matches provided id, or gets an id property of currently selected item.

Parameters:

Name Type Description

[id]

string | number

ID of an item to be selected.

Returns:

If id parameter is specified, then this ComboBox instance is returned, otherwise an id of selected item is returned, or null if no item is selected.

Type: ComboBox | number | string | null