title: Switching Google reCaptcha Version 1 from 2
body: <p>I have successfully designed and implemented Google <code>reCaptcha</code> Version 2 but now my Manager wants that to be of version 1 with numbers to be entered and validated. Is there a way to switch from later to former i.e.- from 2 to 1. I am using following library for reCaptcha:</p>
  
  <pre><code> &lt;script src='https://www.google.com/recaptcha/api.js'&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Update..</p>
  
  <p>To implement Captcha inside form i am using following HTML..</p>
  
  <pre><code> &lt;form class="contact_form" action="#" method="post" name="contact_form"&gt;
                  &lt;div class="frm_row"&gt;
                      &lt;label id="lblmsg" /&gt;
                      &lt;div class="clear"&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="g-recaptcha" data-sitekey="6Lduiw8TAAAAAOZRYAWFUHgFw9_ny5K4-Ti94cY9"&gt;&lt;/div&gt;
  
                  &lt;div class="login-b"&gt;
                      &lt;span class="button-l"&gt;
                        &lt;input type="button" id="Captcha" name="Submit" value="Submit" /&gt;
                      &lt;/span&gt;
                      &lt;div class="clear"&gt; &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/form&gt;
  </code></pre>
  
  <p>As i need to get the Captcha inside the above form to Validate and get the response on button click but as now i am using <code>&lt;script src="http://www.google.com/recaptcha/api/challenge?k=6Lduiw8TAAAAAOZRYAWFUHgFw9_ny5K4-Ti94cY9"&gt;&lt;/script&gt;</code> , so not getting the Captcha inside the form ..Please help me to get that ..Also here is the Jquery Ajax code to send the request on Server side code..</p>
  
  <pre><code>  $(document).ready(function () {
  
          alert("hii1");
  
          $('#Captcha').click(function () {
  
              alert("Hii2");
  
              if ($("#g-recaptcha-response").val()) {
  
                  alert("Hii3");
  
                  var responseValue = $("#g-recaptcha-response").val();
  
                  alert(responseValue);
  
                  $.ajax({
                      type: 'POST',
                      url: 'http://localhost:64132/ValidateCaptcha',
                      data: JSON.stringify({ "CaptchaResponse": responseValue }),
                      contentType: "application/json; charset=utf-8",
                      dataType: 'json',  // Set response datatype as JSON
                      success: function (data) {
                          console.log(data);
                          if (data = true) {
                              $("#lblmsg").text("Validation Success!!");
                          } else {
  
                              $("#lblmsg").text("Oops!! Validation Failed!! Please Try Again");
                          }
                      },
                      error: function (XMLHttpRequest, textStatus, errorThrown) {
                          alert("Error");
                      }
                  });
              }
  
              });
      });
  </code></pre>
  
  <p>Please help me ..Thanks..</p>