gets the ID of a selected item in the option list
string|number | ID of a selected option |
//master is a control with a popup list of options
var suggest = master.getPopup();
var sel = master.setValue();
The method doesn't get value of the master control (text, combo, multicombo, richselect, multiselect), it gets the ID of a highlighted (selected) option in the suggest list only.
To get the value of the master control, apply the the getValue method to it.