arielgk
11/16/2015 - 5:42 PM

index.php

  <script src='https://www.google.com/recaptcha/api.js'></script>
        <div class="g-recaptcha" data-sitekey="6Lf2kA8TAAAAAF-Ys9cw-WsLDMeMMLFXatRL-4RK"></div>
        <script>
          if(grecaptcha.getResponse() == ""){
          $('#error').html('<div class="error">Solucione el captcha </div>');
          $('recaptcha').css({'border':'1px solid #f00',})
          }else{
             //todo bien
           }
        </script>