简体   繁体   English

使用Javascript进行表单验证无效

[英]Form validation with Javascript not working

I purchased this script to build my forms. 我购买了此脚本来构建表单。 His demo is working fine but on my version on this link the next button do not validate the form fields, instead it produce a js error when checked on Google console. 他的演示工作正常,但在此链接的我的版本中下一个按钮不验证表单字段,而是在Google控制台上检查时会产生js错误。

Google console produce this js error : Uncaught TypeError: $(...).writeDebug is not a function. Google控制台会产生此js错误:Uncaught TypeError:$(...)。writeDebug不是一个函数。

Thanks for any help, because the script vendor do not reply to any email. 感谢您的帮助,因为脚本供应商不会回复任何电子邮件。

The writeDebug function is defined inside plugins.forms.min.js, but there is a syntax error. writeDebug函数是在plugins.forms.min.js中定义的,但是存在语法错误。

So maybe your function is not defined because the script itself is messed up. 所以也许您的函数未定义,因为脚本本身被弄乱了。 Try fixing that semi-colon problem and it might be ok. 尝试解决该分号问题,可能没问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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