Mootoolsの検証には同様のプロセスがありますか?
Success
、Failure
およびajaxSubmitFile
?
$("#rems").validationEngine({
ajaxSubmit: true,
ajaxSubmitFile: "database/agentpanel/reminder/makerem.php",
success : function() {
$.get("database/agentpanel/reminder/loadrem.php", function(html) {
$("#rem-scroll").html(html);
alert("Reminder Set");
$('#rems').find("input[type=text], textarea").val("");
$('#rem_confirm').attr('checked', false);
});
},
failure : function() { alert("Fill in all the fields with Red Marks"); }
});
次のページに移動せずにフォームを送信し、スクリプトを何度も実行できるようにしたいと考えていsuccess
ますfailure
。