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

lables, to access the labels displayed in the component.

selectedObjects, to access the values corresponding to the labels.

selectedLabel, to access the currently selected label in single-valued components.

Accessing User Input in Script, for more information about selectedLabels.

<< selectedLabel © 1996-2013 InetSoft Technology Corporation (v11.5) selectedObject >>