updates the specified option in the combo box
oldvalue | string | the current option's value |
value | string | a new option's value |
text | string | a new option's text |
css | string | a new style for the option |
var myCombo = new dhtmlxCombo("combo_zone3","alfa3",200);
myCombo.addOption([
{value: "a", text: "option A", img_src: "../images/red.gif", css:"color:red;"},
{value: "b", text: "option B", img_src: "../images/green.gif"},
{value: "c", text: "option C", img_src: "../images/blue.gif"}
]);
...
myCombo.updateOption("b","b","New option B","color:green;");
Back to top