Sciter: How to get list of all selected options in < select multiple >?
April 4, 2007
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.

No Comments »
No comments yet.
RSS feed for comments on this post. TrackBack URI
Leave a comment