当与ajax结合使用时,recaptcha无法正常工作

问题描述:

大家好,我的代码有问题

i无法在codeigniter中显示recaptcha当我结合ajax



像这样的代码:

script src =http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js>

< / script>



< script>

$(document).ready(function(){

$(#li1)。click(function(){

$(#div1)。load(watsup);

$ ('#divload')。hide();

});

$(#li2)。click(function(){

$(#div1)。load(contact);

$('#divack')。hide();

});

});

< / script>



Hello all, i hv a problem with my code
i can't show recaptcha in codeigniter when i combined with ajax

the code like this :
script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js">
</script>

<script>
$(document).ready(function(){
$("#li1").click(function(){
$("#div1").load("watsup");
$('#divload').hide();
});
$("#li2").click(function(){
$("#div1").load("contact");
$('#divload').hide();
});
});
</script>

<li id="li1" class="active"><a>Home</a></li>
<li id="li2" class="active"><a>Contact Us</a></li>





当我点击联系我们recaptcha没有显示,

但是当禁用ajax和我这样使用的html时,



when i click contact us recaptcha not show,
but when ajax disabled and the html i use like this,

<li id="li1" class="active"><?php echo anchor('watsup', 'Home');?></li>
<li id="li2" class="active"><?php echo anchor('contact', 'Contact us');?></li>



recpatcha工作正常!

i累了试试,有人可以提供帮助吗?



谢谢,


recpatcha worked fine!
i tired to try, anyone can help ?

Thanks,

(文件).ready(function(){
(document).ready(function(){


(#li1)。单击(function(){
("#li1").click(function(){


(#div1)。 (watsup);
("#div1").load("watsup");