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

136
Views
Recaptcha onclick event

I want to fire a jQuery event onclick when the user selects the recaptcha checkbox.

This is the code I have:

<div id="reCaptcha" data-sitekey="XXXXX"></div>

Is this possible to do? I've tried the usual jQuery onclick event (see below) for that element but to no avail.

$j('#reCaptcha').on('click', function(event) { 
    alert("YES PLEASE!");
});
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

HTML:

<div id="reCaptcha" data-sitekey="XXXXX"></div>

Then:

$j('#reCaptcha').on('click', function(event) { 
    alert("Your code works!");
});
about 4 years ago · Juan Pablo Isaza Report

0

reCaptcha have callback function which you can provide by using data as eg

<div id="reCaptcha" data-callback="thecallback"
 data-sitekey="XXXXX"></div>

then you can write you call back after click

function thecallback(){
alert("Clicked")
}

that is what is legally possible hp[e it will help you

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!