AnsweredAssumed Answered

Attach multiple events

Question asked by DevonTaig on Jan 27, 2015
Latest reply on Jan 29, 2015 by DevonTaig

In my widget, I have successfully hooked up a dojo on-click listener to an HTML Select control using data-dojo-attach-event like so...

 

<select id="cboPaletteItemChooser" data-dojo-attach-event="onclick:myFunc" >

... more code ...

 

But what I really want to do is also add an event handler for the onchange event as well (in addition to onclick).  How can I add two or more event handlers?

 

something like this doesn't work

<select id="cboPaletteItemChooser" data-dojo-attach-event="onclick:myFunc;onchange:myFunc2" >

Outcomes