Jason K Jason K - 1 year ago 134
Javascript Question

How to disable dijit ConfirmDialog button

How can i disable the Ok button on dijit/ConfirmDialog?

var lasloLoginFormDialog = new ConfirmDialog({
title: "Login",
closable: false,


Answer Source

The confirmDialog has an okButton attribute that represents the OK button.

You can set it to disabled.

lasloLoginFormDialog.okButton.set('disabled',true); // add this line after show
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download