简体   繁体   中英

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!

您应该在“文档就绪”事件之后分配验证规则,因此js / script.js的所有代码都必须在$(function(){/ js / script.js的内容 /})中;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM