我在一个页面上有多个表单,对于每个表单,我都希望用户在提交表单之前进行确认。但是当用户确认提交时,我如何让这个对话框知道用户正在提交哪个表单?它需要自定义参数吗?谢谢。
$("#dialog-confirm").dialog({
resizable: false,
height:140,
modal: true,
buttons: {
'Confirm submit': function() {
document.______???????_____.submit();
},
Cancel: function() {
$(this).dialog('close');
}
}
});
$('.allForms').submit(function(){
$('#dialog-confirm').dialog('open');
});