google recaptcha with ajax form In order to capture the token you should use this code var token = $("#g-recaptcha-response").val();