开发者

jQuery validation: allowing form submission in spite of errors

I am running into issues with the jquery form validation plugin. It is allowing the form to be submitted in IE, also, it is allowing form submission in Firefox if two previously invalid required fields are fixed (even if there are other invalid fields).

http://superuntitled.com/dev/index.html

The js is the most basic use of validate()

$("#emailform").validate();

The class names are correctly set (required, email).

Are th开发者_运维问答ere any none gotchas or bugs for this script?

I am using jQuery 1.6.2 and the jQuery Validation Plugin 1.8.1


You may be triggering JavaScript exceptions, which are causing your script to terminate. Once that happens, the default form is submitted, as that would be the normal HTML action without the JS.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜