In jQuery, you can do this:
$(\'#myElement\').trigger(\'change\');
How do I do that in Dojo?
For certain dijit widgets and djit specific events ( such as onChange ), you can de-facto 'trigger' by calling the event name.
<input id="numberBox" data-dojo-type="dijit.form.NumberTextBox" />
<script>
dojo.connect( dijit.byId('numberBox'), "onChange", function ( event ) {
dijit.byId('numberBox').set('value', 12345 );
});
dijit.byId('numberBox').onChange();
</script>