How to dynamically insert new parameters into dijit.form.Select

I have a dijit selection menu and am trying to dynamically insert new parameters. From inside the widget that generates the selection menu, I tried the following, but it did not work;

this.selectMenu.domNode.innerHTML = options 

this.selectMenuis an attached point, and optionsis html for the parameters that I would like to insert

The above code replaces the entire selection menu, rather than inserting options

Thank you very much in advance

+5
source share
1 answer
dijit.byId("selectmenu").addOption({disabled:false,label:'label',selected:true,value:1});
+8
source

All Articles