我正在尝试使用jQueryUI对话框,在数据库更新之前获取用户确认,但我不知道如何确定用户在对话框上选择了什么,因为在我找到的所有示例中,两个按钮都只是关闭对话框,并没有保存所选的按钮。例如,从jQueryUI示例和文档:
buttons: {
'Deactivate the campaign': function () {
$(this).dialog('close');
},
Cancel: function () {
$(this).dialog("close");
}
}