jQuery Form Validation Working in Mozilla and Internet Explorer, but not in Chrome or Safari

I've taken an exact copy of an existing working Contact Form… http://dev.rapweb.co.uk/rapport-form-test/

In Chrome and Safari the validation takes no effect.

I've found other people with similar problems, who have had suggestions made to try alternate ways of submitting the form, but after trying these alternate methods, the form validation still fails in Chrome and Safari.

I'm baffled... Any help would be much appreciated!

Answers


You should assign validation rules after 'document ready' event So all code of js/script.js must be in $(function(){ /contents of js/script.js/ });


Need Your Help

Unit testing WCF service class with authentication and authorization enabled

c# wcf unit-testing nunit wcf-security

I have a WCF service which is having UserName authentication and PrincipalPermission Authorization enabled.