I have three buttons: first open, second disable, and third enable. When user click on disable button then jquery ui dialog should be disabled and not open on click on open button. After that, if user click on enable then dialog should be enabled and open on open dialog click.
code:-
$(function() {
$( "#dialog" ).dialog({
autoOpen: false,
show: {
effect: "blind",
duration: 1000
},
hide: {
effect: "explode",
duration: 1000
}
});
$( "#opener" ).click(function() {
$( "#dialog" ).dialog( "open" );
});
});
Any help should be appreciated.