Background:
1: Introduction page changes;
2: Mailbox cannot be repeated
Changes the page, the mailbox is brought out by default, but the field has remote authentication. cannot be repeated when the focus is lost by the mailbox input box. Remote authentication is triggered by default.
Introduction complete
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvc3vuc2hpbmvfymvhbg==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma== /dissolve/70/gravity/center ">
How to resolve:
When the mailbox has no change, do not actively trigger remote authentication;
Turned on GitHub plug-in issues, see an article https://github.com/jzaefferer/jquery-validation/issues/431, the Great God provides the perfect plan,
Email:{required:true,email:true,maxlength:100,remote: {depends:function (Element) { return element.value!== " ${client.email} "; },param: {url:" ${ctx}/account/checkemail ", Cache:false}}}
Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.
jquery validation remote depends validation trigger condition