Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

217
Vistas
how to show google recaptcha error message with javascript

After validation, if captcha is not selected, a response is returned with g-recaptcha-response.

Because there is a dash in g-recaptcha-response, I can not display it

if (response.data.msg.g-recaptcha-response) {
document.getElementById('captcha').innerText = response.data.msg.g-recaptcha-response
}
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Create a span or div tag where you want to display the message. Here I have just put it under the captcha box.

<div class="g-recaptcha">
</div>
<span id="error-captcha"></span>

Then validate with the script below and append the validation message to it:

if(grecaptcha.getResponse().length == 0){
     $('#error-captcha').empty()
     $('#error-captcha').append("Please tick the recaptcha.");
    }
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda