I am trying to load Google reCAPTCHA in popup. First time it is load properly but while i it is closed and load again it is not loaded.
single page having two link both link are displaying in same popup. First time Google reCAPTCHA load perfectly
code for Google reCAPTCHA
<div id="result"></div>
<div id="result123"></div>
<script type="text/javascript">
if(yourGlobalVariable==000)
{
console.log("call first time");
$.ajax({
url: 'http://localhost/nitin/test1',
type: 'POST',
success: function(msg) {
$( "#result" ).empty().append( msg );
console.log(msg);
}
});
}
if(yourGlobalVariable==111)
{
console.log("call second time");
$.ajax({
url: 'http://localhost/nitin/test1',
type: 'POST',
success: function(msg) {
$( "#result123" ).empty().append( msg );
console.log(msg);
}
});
}