Created
July 21, 2017 15:53
-
-
Save tesarwijaya/d401dcb6cea7fb6f0b3145034a4d217a to your computer and use it in GitHub Desktop.
jquery get data
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
$.get( "example.php", function(response) { | |
console.log(response.data) | |
alert( "success" ); | |
}) | |
.done(function() { | |
alert( "second success" ); | |
}) | |
.fail(function() { | |
alert( "error" ); | |
}) | |
.always(function() { | |
alert( "finished" ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
iku javascript yah sar?