Sciter: How to get list of all selected options in < select multiple >?

Following code fragment will fill array a with selected < option> references in multiselectable list ( sel – reference to some < select multiple > )

var a = [];
sel.select ( :el: a.push(el), "option:checked"  );

This fragment uses following:

  1. Element.select(callback-function, css-selector) method of the DOM element. (a.k.a. getElementsBySelector())
  2. Short form of lambda function notation in tiscript

Note: < select > and < option > are plain DOM elements in Sciter. What really “activates” < select > element is behavior:select that is applied by master style sheet.