阅读背景:

我可以使用preventDefault();在ajax回调中?

来源:互联网 

I'm doing some form validation, and I'm having trouble with what I'm trying to accomplish. I want to be able to validate my zip code on blur of the field, but also call the same function to validate zip on submit of the form, and prevent the form from being submitted if the zip code is invalid. My code (generically) goes something like this.I'm doing some form validation, and I'm having




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: