.on('success.form.fv', function(e) {
// Prevent form submission
e.preventDefault();
var $form = $(e.target),
fv = $form.data('formValidation');
// Use Ajax to submit form data
$.ajax({
url: $form.attr('action'),
type: 'POST',
data: $form.serialize(),
cache: false,
success: function (data, textStatus, jqXHR) {
alert("Your changes have been saved")
}
});
});
我正在使用 ajax调用success.form.fv
。formvalidationIO
如何在提交表单之前添加带有是和否选项的确认对话框?