i am trying to use jquery form submission with CI but i am unable to get return value from php file.
$(document).ready(function($){
$("#submit_btn").click(function(){
var response = $.ajax({
type: "POST",
url: "send_email.php",
data: $(commentForm).serialize()
}).responseText;
.......
here i want to get value return from PHP so that i can print that value
like bellow
.......
$('#commentForm').html('<h5>Thanks</h5>'+here is result from php);
return false;
});
});