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:
Element.select(callback-function, css-selector)
method of the DOM element. (a.k.a. getElementsBySelector())- 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.