1 回答

TA貢獻1797條經驗 獲得超6個贊
?$(function () {
??????????? $("#fromsp").validate(function () {
??????????????? var options = {
??????????????????? success: function (respineText, statusText) {
??????????????????????? if (statusText == "success") {
??????????????????????????? Closesp();
??????????????????????? } else {
??????????????????????????? Errosp();
??????????????????????? }
??????????????????? },
??????????????????? clearForm: true,
??????????????????? resetForm: true
??????????????? };
??????????????? $("#fromsp").submit(function () {
??????????????????? $(this).ajaxSubmit(options);
??????????????????? return false; //添加上去
??????????????? });
??????????? });
??????? });
把jquery的from 包在validate里面把from的那個beforeSubmit去掉
添加回答
舉報