below is my code to fetch a webpage html....
$.ajax({
url: 'server.php',
method: 'POST',
dataType : "html",
data: {name: 'film'},
success: function(data) {
console.log(data);
});
});
server.php wil return ...
return <div>some html contents</div>
I want to show this in ajax console success function....now its not displaying anything in console
.. how do we fix this....