I am using jquery ui dialog. In the dialog i have 1 save button, when user click on the save button in the callback of the save button i am disabling it. My code :
$("#Form1").dialog({
width: 500, autoOpen: false, modal: true, resizable: false, draggable: false,
buttons: {
"Save": function (event, ui) {
$(event.currentTarget).button({ disabled: true });
... .
....
}
}
, beforeClose: function () {
//here how can i enable the save button
}
});
Now my problem is that when user open the dialog again the save button still disabled so thats why i want to enable the button at dialog beforeClose event. How can i do this?
event.currentTargetas an attribute of the dialog