Skip to content

Instantly share code, notes, and snippets.

@ryanapil
Last active November 13, 2018 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanapil/01c2061c56ac090d20abdc81397ca373 to your computer and use it in GitHub Desktop.
Save ryanapil/01c2061c56ac090d20abdc81397ca373 to your computer and use it in GitHub Desktop.
jQuery AJAX Call Template
$.ajax({
url: "",
method: "GET",
data: {
},
success: function(data) {
console.log(data);
},
error: function(jqXHR, textStatus, errorThrown) {
console.log(jqXHR);
console.log(textStatus);
console.log(errorThrown);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment