Click here to Skip to main content
15,883,901 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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>

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


when i click contact us recaptcha not show,
but when ajax disabled and the html i use like this,
XML
<li id="li1" class="active"><?php echo anchor('watsup', 'Home');?></li>
<li id="li2" class="active"><?php echo anchor('contact', 'Contact us');?></li>

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

Thanks,
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900