I need to disable the dojo button through the click event, but my dojo button is now disabled. Only the color button also works fine with the click event. How can I limit this? In the j query, when we use the disable attribute, clicking the vent will also change to the disabled mode. How to be in the dojo?
My code:
dom.byId("somID").setAttribute("disabled", "disabled"); pre>
You need to use widgets instead of dom nodes.
< /p>
require(['dijit/registry'], function(registry) {
registry.byId('somId').set('disabled', true);
});
I need to disable the dojo button through the click event, but my dojo button is now disabled. Only the color button also works fine with the click event. How to restrict this operation? In the j query, when we use the disable attribute, clicking the vent will also change to the disabled mode. How to be in the dojo?
My code:
dom.byId("somID").setAttribute("disabled", "disabled"); pre>You need to use widgets instead of dom nodes.
require(['dijit/ registry'], function(registry) {
registry.byId('somId').set('disabled', true);
});< /p>