var id = 45;
$.ajax({
url :'url', // This URL response some HTML content
type: 'POST',
dataType: 'json',
data :{ID:id},
success:function(data)
{
console.log(data); // No Response here
},
error : function (error){
console.log(error); // error.responseText contain html content
}
});
I render HTML content by JQuery AJAX. The HTML response comes from error function instead of success function. is any mistake from my side?
htmlfrom server then instead ofdataType: 'json'usedataType: 'html'