ActiveForm beforeSubmit用法

来源:互联网 发布:windows xp下 arp命令 编辑:程序博客网 时间:2024/05/16 15:47
$("#login-form").on("beforeSubmit", function (event) {  // Now you can work with messages by accessing messages variable  var attributes = $(this).data().attributes; // to get the list of attributes that has been passed in attributes property  var settings = $(this).data().settings; // to get the settings});


beforeValidate,afterValidate,beforeSubmit,ajaxBeforeSend,ajaxComplete以上有5个都可以用同样的写法来捕获事件,具体参数参考activeform.js


原创粉丝点击