selectedLabels
Returns the selected labels (not the values) of the component as an array. Applies to multi-value input elements (Check Boxes) and selection elements (Selection Lists, Selection Trees, Range Slider, Calendars). This is a read-only property.
Type
Array array of selected option labels
Example
var num = SelectionList1.selectedLabels.length;
var msg = 'You selected ' + num + ' objects: ';
msg += SelectionList1.selectedLabels.join(', ');
alert(msg)
See Also
selectedObjects, to access the values corresponding to the labels.
Accessing User Input in Script, for more information about selectedLabels.
| << selectedLabel | © 1996-2013 InetSoft Technology Corporation (v11.4) | selectedObject >> |