I'm trying to use the jQueryUI Dialog to get user confirmation before a database update, but I'm battling to see how I can tell what the user's choice on the dialog is, as all in samples I can find, both buttons just close the dialog, with no persistence of the chosen button. E.g. from the jQueryUI sample and docs:
buttons: {
'Deactivate the campaign': function () {
$(this).dialog('close');
},
Cancel: function () {
$(this).dialog("close");
}
}