nice validator ajax
皇甫繁
2023-12-01
$('#basicForm').trigger("validate");
$('#basicForm').on('valid.form', function(e, form){
$.ajax({
url : "${ctx }/check/saveOrUpdateHead",
type : 'post',
async : true,
cache : false,
data : $(form).serialize(),
success : function(data) {
showInfo("保存基本信息成功!");
$("#basicForm [name=id]").val(data.content);
$("#saveBody [name=headId]").val(data.content);
$("#addMonter").removeAttr("disabled");
$("#addMonter").on("click",function(){
page.addMonterButton("${vo.id}");
});
}
});
});