Last active
November 2, 2016 15:15
-
-
Save t9toqwerty/6f6c5800fc08eb1ea75af1efda16c99c to your computer and use it in GitHub Desktop.
Basic Jquery AJAX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
type: "POST", | |
url: 'url.php', | |
data: { | |
"key1": value1, | |
"key2": value2 | |
}, | |
success: function (data) { | |
return data; | |
}, | |
error: function (jqXHR, exception) { | |
console.log(jqXHR); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment