开发者

How to validate recaptcha_tag with jQuery Validate?

I'm using jQuery validate for a contact form:


$(document).ready(function(){
            $("#contactFormid").validate();
          });

and i'm using this rails plugin to generate recaptcha on my page


recaptcha_tags :public_key => 'xxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxxxxxxx' , :display=>{:theme=>"white" }

how do i get jquery validate to validate my recaptcha tags before sendi开发者_运维问答ng the info....

i have everything validated with jquery and i don't want to change it to validate on the model....


Captcha should be validated at the server side not at the client side. The actual captcha words are available only on the server side not on the client side. If you are storing it on client side, you are leaving a way for a bot to figure it out which defeats the whole purpose of captcha itself.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜