Check documentation for the latest version 6.0 of dhtmlxSuite addOption DHTMLX Docs

addOption

adds a new option

void addOption(string|array options);

Parameters

optionsstring|arraydifferent input for different kinds of options. Please, refer to examples.

Example

var myCombo = new dhtmlXCombo("combo_zone3","alfa3",200);
myCombo.addOption([
    ["a","option A"],
    ["b","option B", "color:red;"],
    ["c","option C"]
]);

Related samples

See also
  • Articles
  • Back to top