javascript 验证/阻止提交表单 amazon Mechanical Turk
I am using Amazon survey form template to create a survey.
however i would like to use validation.
I saw this question however i don't want to use the web services to create the hit but use their template.
How can I prevent the form from being submitted?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我找到了一种方法:
我向提交按钮添加了一个功能:
I found a way to do it:
I added a function to the submit button:
这是使用 jQuery 进行验证的示例
Here's an example of doing the validation with jQuery