I have a form on which I have the following from Google's recapture:
<div class="g-recaptcha" data-sitekey="6Lf-jgQTAAAAAGgYwYOOjGAQRFQKqTx_6FCcUYM_"></div>
When the form page is loaded in the browser, it is replaced with an iframe, in which there is a checkbox lablled "I'm not a robot". When the form is submitted, the server-side receives a value under name: g-recaptcha-response.
How can I set the validate plugin to make it required for people to click the "I'm not a robot" checkbox?
Thanks!
UPDATE
Based on the solution @WpSEO.it provides, here is what I have for my case:
HTML
<div id="g-recaptcha" class="g-recaptcha"></div> <input type="text" name="GrcResponse" value="" style="margin-left: -9999px;height: 1px;">
Note that I cannot make GrcResponse field (not "grc-response" as in the selected answer) hidden or display: none via CSS, because I find out that the validate plugin does not check this field if I did that.
Javascript (the validate plugin)
$('#myform').validate({ rules: { GrcResponse: { required: true } } });
Hope this helps!