How to use click event Disable Dojo button

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>

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5806 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.