elementObj.AddSelectionRange(start_range, end_range);
start_range
is the text or the ordinal position of the first option in the range to be added to selection.end_range
is the text or the ordinal position of the last option in the range to be added to selection.// Assume nativeList is a <select multiple> HTML element.
// Select the first three items in the multiple selection list-box control.
var coreObj = new ActiveXObject("OpenTwebst.Core");
var list = coreObj.AttachToNativeElement(nativeList);
list.Select(0);
list.AddSelectionRange(1, 2);