I've got a dijit select menu and I'm trying to insert new options dynamically. From inside the widget which generates the select menu I tried the following but it didn't work;
this.selectMenu.domNode.innerHTML = options
this.selectMenu
is the attach-point and options
is the html for the options I'd like to insert
The code above replaces the entire select menu, rather than insert the options
Many thanks in advance
dijit.byId("selectmenu").addOption({disabled:false,label:'label',selected:true,value:1});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With