ReCAPTCHA placeholder element must be empty

10,089 views
Skip to first unread message

Andrii Mutylo

unread,
Sep 3, 2015, 9:01:30 AM9/3/15
to reCAPTCHA
When load and form with reCaptcha appear 
i got js error ReCAPTCHA placeholder element must be empty 
Can't submit form.

Anybody can help me, please

dho...@gmail.com

unread,
Oct 26, 2015, 4:48:49 PM10/26/15
to reCAPTCHA
I got the same issue and in my case it was silly stupid. In my case i did not have explicit closing tag for div that holds reCaptcha:

<div key="" />

as opposed to 

<div key=""></div>

and during html minification process it was removing forward slash breaking the DOM

Yuri Suarez

unread,
May 25, 2017, 8:57:30 AM5/25/17
to reCAPTCHA
I have the same issue when I place the reCaptcha in a modal and the modal load again. If any have solved this?

Yuri Suarez

unread,
May 25, 2017, 11:48:36 AM5/25/17
to reCAPTCHA
Found the issue:


was loading twice, inspect elements and find the library. If you do view source, you are not going to see the latest changes in the DOM
Reply all
Reply to author
Forward
0 new messages