0
是否可以將驗證錯誤消息發送給其他功能? 作爲一個例子,我有一個顯示一個確定的消息和(n)秒後消失通知功能:jQuery驗證,向其他功能發送錯誤信息
notify("My error message", { selector: '#form-notification' });
如何使用與此通知功能:預先
$("#myForm").validate({
submitHandler: function(form) {
var options = {
target: '#save_form',
dataType: 'json',
beforeSubmit: showRequest,
success: showResponse
};
$(form).ajaxSubmit(options);
}
});
由於。
取在看看[invalidHandler](http://docs.jquery.com/Plugins/Validation/validate#options) – 2011-06-13 18:07:15