The response is a HTML document (from a request from a link’s href)
var data = $(response).find('body').html();
alert(data);
// I get a alert with nothing...
full code:
$.ajax({
url: $(this).attr('href'),
type: 'GET',
success: function(response){
var data = $(response).find('body').html();
alert(data);
}
});
Use this tricky code 😉