Skip to content

Instantly share code, notes, and snippets.

@scorchen
Created May 4, 2014 07:04
Show Gist options
  • Save scorchen/06f8d5bf434505f5c7d8 to your computer and use it in GitHub Desktop.
Save scorchen/06f8d5bf434505f5c7d8 to your computer and use it in GitHub Desktop.
$.ajax({
type: "POST",
url: "some.php",
data: { name: "John", location: "Boston" }
})
.done(function( msg ) {
alert( "Data Saved: " + msg );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment