DHTMLX Docs & Samples Explorer

Manage options collection

To set or retrieve the value of a list item.
Applied to select only.

var opts = dhxForm.getOptions(name); // will return options as is

Adding new option:

opts.add(new Option(text, value));