$.ajax() in jQuery — a practical guide to jQuery $.ajax with clear examples you can reuse in real projects.
jQuery Tutorial Series (66/101). Prefer one article? Read the complete jQuery tutorial.
Short description
Central place for auth headers and global ajaxSetup (use carefully).
$.ajax
$.ajax({
url: '/api/items',
method: 'GET',
dataType: 'json'
}).done(function (data) {
console.log(data);
}).fail(function (xhr) {
console.error(xhr.status);
});