我想用ajax添加验证码

发布于 2024-09-10 03:03:30 字数 88 浏览 4 评论 0原文

好吧,我有一个表单,其中有电子邮件和验证码验证,但现在我想做一些事情,例如如果验证码不正确或留空,那么我的表单不得重新加载页面,即所有已填写的字段不得获取空白的。

well i have a form in which email and captcha validation was there but now i want to do some thing like if captcha is incorrect or left empty than my form must not reload the page i.e all those field which are already been filled out must not get blank.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

温柔女人霸气范 2024-09-17 03:03:30

您可以

我相信 (A) 更好,因为它允许您可以无缝地处理所有其他类型的验证。但根据您已有的内容 (B) 实施起来可能很简单。所以YMMV。

You can either

I believe that (A) is a lot better because it allows you to deal seamlessly with all other kinds of validation. But depending on what you already have (B) might be trivial to implement. So YMMV.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文