How would I disable the 'Do Something Else' button within the JQuery Modal Window based on a boolean value. Say my boolean is IsButtonDisabled, how would I then use this with the buttons section below. IsButtonDisabled would be set to either true or false before the following code executed but the code would be executed several times in a session and each time IsButtonDisabled could be different.
bgiframe:
true,height: 480,
width: 650,
modal:
true,autoOpen:
false,resizable:
false,buttons: {
Cancel:
function() { //do nothing$(
this).dialog('close');},
'Do Something Else': function() {}
}
});