var getTemplateCall = $.ajax({
url: url,
type: type,
data: data
});
console.log(getTemplateCall);
This code will show me a break down of the ajax response in the console including 'responseText' property and its contents.
I want to access just the response text as a variable so I have tried
console.log(getTemplateCall.responseText);
console.log(getTemplateCall['responseText']);
These both returned 'undefined' when what I actually want to see is the contents of the responseText property. I think this is a syntax problem.
What is the correct way to access the responseText?