Another fix:
Line #3 can be changed to this:
jQuery('input.sml_submitbtn').bind('click', function() {
The ‘input[name=”submit”]‘ portion of the original code, will target ANY Input Button on that page, which carries the name “submit” (which most Input Buttons do).
I have a comment box on my site, and I noticed that it was triggering the warning messages incorrectly, when I attempted to submit a comment.
This fix I made, solves the problem.
I suggest changing Line #9 of zip.xerces (Jeff Weiss) code to this:
var pattern=/(^[a-zA-Z0-9_.+-]+)@([a-zA-Z0-9_.-]+).([a-zA-Z]{2,15}$)/i;
The way Jeff’s code is written, the following VALID emails will all Fail with an Error:
andrew0@email.com
andrew@99email.com
andrew@email.co.uk
andrew0@email.international
etc…
The code change I supplied should fix those.
Thanks and great work, by the way, Jeff!
Your code is very useful.
-Andrew