Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

214
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!