模态框隐藏时,表单错误提示清空;

This commit is contained in:
xueli.xue 2016-01-12 17:25:38 +08:00
parent 51bfaa4131
commit 261e628919
1 changed files with 3 additions and 1 deletions

View File

@ -195,7 +195,9 @@ $(function() {
} }
}); });
$("#addModal").on('hide.bs.modal', function () { $("#addModal").on('hide.bs.modal', function () {
$("#addModal .form")[0].reset() //$("#addModal .form")[0].reset();
addModalValidate.resetForm();
$("#addModal .form .form-group").removeClass("has-error");
}); });
// 新增-添加参数 // 新增-添加参数