Error: ReCAPTCHA placeholder element must be empty
<p>I am using recaptcha with my laravel application.</p>

<p>I just want to check recaptcha's response on form submit using jquery and stop user by alert that pleade validate captcha.</p>

<p>but , I could not stop form submission even if captcha is not filled. </p>

<p>here is my code.</p>

<pre><code> $('#payuForm').on('submit', function (e) {

                    var response = grecaptcha.getResponse();

                    if(response.length == 0 ||  response == '' || response ===false ) {
                        alert('Please validate captcha.');
                        e.preventDefault();
                    }
                });



&lt;div class="captcha"&gt;
 {{ View::make('recaptcha::display') }}
&lt;/div&gt;
</code></pre>

<p>I am getting this error in browser console , and form gets submit. </p>

<pre><code>Error: ReCAPTCHA placeholder element must be empty
</code></pre>