i want to display data with ajax but operation is performed and data is not displaying. here code of ajax
function changeStatus(id){
$.ajax({
type:'post',
url:'include/status.php',
data:'status='+id,
success:function(data){
if(data=='1')
{
$(this).html(data);
}else{ alert("sorry"); }
}
});
}
and php code is: this is a button.
<a href="#" class="btn btn-primary" id="btnblk" onclick=" return changeStatus(<?php echo $data[0] ?>,this)">