JavaScript AJAX Basics (retiring) jQuery and AJAX jQuery’s AJAX Shorthand Methods

so is 'response' parameter basically xhr.responseText ?

so is 'response' parameter basically xhr.responseText ?

1 Answer

Steven Parker
Steven Parker
172,328 Points

The callback function is passed the returned data, which can be an XML root element, text string, JavaScript file, or JSON object, depending on the MIME type of the response.

For more details, see the jQuery API page on jQuery.get().