日期:2014-05-16 浏览次数:20973 次
$ajax.post("...............") $.formValidator.initConfig({formID:"applyForm",onError:function(msg){alert(msg)}}); $("#reason").formValidator().inputValidator({min:1,onErrorMin:'请输入申请内容及原因'});
$.formValidator.initConfig({theme:"Default",submitOnce:true,formID:"form1",ajaxForm:{ dataType : "html", buttons:$("#button"), url: "http://www.51gh.net/chkuser.aspx?act=ok" }, onError:function(msg,obj,errorlist){ $("#errorlist").empty(); $.map(errorlist,function(msg){ $("#errorlist").append("[*]" + msg + " ") }); alert(msg); }, submitAfterAjaxPrompt : '有数据正在异步验证,请稍等...' });
if ($.formValidator.pageIsValid('1')==true) { $.post("xxxxxxxxxxxxxxxxx") }