Skip to content

Instantly share code, notes, and snippets.

@tesarwijaya
Created July 21, 2017 15:53
Show Gist options
  • Save tesarwijaya/d401dcb6cea7fb6f0b3145034a4d217a to your computer and use it in GitHub Desktop.
Save tesarwijaya/d401dcb6cea7fb6f0b3145034a4d217a to your computer and use it in GitHub Desktop.
jquery get data
$.get( "example.php", function(response) {
console.log(response.data)
alert( "success" );
})
.done(function() {
alert( "second success" );
})
.fail(function() {
alert( "error" );
})
.always(function() {
alert( "finished" );
});
@TriAdhiAtmaji
Copy link

iku javascript yah sar?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment