我有以下代码。 存在一个对话框,其中载入条款并在表单提交中显示。 请帮助我通过对话框中的同意按钮提交表格。jQuery:提交ui.dialog显示,对话框按钮提交
$(".terms").dialog({
autoOpen: false,
modal: true,
height: 400,
width: 500,
buttons: {
"I agree": function() {
return $("#new_user").submit();
},
"Don`t agree - Exit": function() {
return $(this).dialog("close");
}
}
});
$("#new_user").submit(function(e) {
e.preventDefault();
return $(".terms").dialog("open");
});
谢谢!
_“请帮助我禁用防止并提交它。”_ **什么?!**我不知道它是什么类型的语言,但它绝对不是英语! – gdoron
好吧不好意思帮我把它提交使用按钮;) –
使用哪个按钮?提交按钮或另一个按钮? –