I'm making a page that will submit a form by Javascript (JQuery), not in the ordinary way. The purpose of the feat is not to reload the page. I'm not able to implement Invisible reCaptcha on this system.
After reading the documentation I found that this code is placed in the form and I believe it includes the code when submitting a form form.
<div class="g-recaptcha"
data-sitekey="your_site_key"
data-callback="onSubmit"
data-size="invisible">
</div>
The data-callback="onSubmit"
line calls such a function if the user "passes the test". This does not help much in my case, not to mention that despite being inivisible, the symbol of reCaptcha still appears.
As I understand it, loading reCaptcha already generates the code, but I need to access it in a JavaSCript to send it to the server.
If anyone knows some way to solve please help me. I would like to not even include that div in HTML.