I have a modal dialog. I want one button to be disabled and then later enabled. I plan to do this by adding an id to the button and then using that id to use the add/remove attribute disabled. If there is another way I am open to suggestions. Here is some sample code:
$('#navDialog').dialog({
modal:true,
autoOpen:false,
height: 'auto',
width: 'auto',
title: "Category Editor",
buttons: {
"Delete": function(){somethingMore();},
"Edit": function(){something();},
"Confirm":function(){importantSomething();}
},
draggable: true,
resizable: false
});
I want to be able to control the Confirm button.