Getting selected items

There are two ways to get the selected item, get selected item index and immediately get selected item text.

To obtain the index of selected items we could use the following function.

ui_item_get_selected (control);

Return: Boolean

Argument control is the handle of ui_select_create(...); function.

To obtain the text of selected items we could use the following function.

ui_item_get_text (control);

Return: Boolean

Argument control is the handle of ui_select_create(...); function

var index = ui_item_get_selected (selectCountry);
var text = ui_item_get_text (selectCountry);

Getting selected items from selectCountry select and save it to a local variable.

results matching ""

    No results matching ""