Skip to content

Instantly share code, notes, and snippets.

@michaelaguiar
Created August 31, 2011 18:51
Show Gist options
  • Select an option

  • Save michaelaguiar/1184369 to your computer and use it in GitHub Desktop.

Select an option

Save michaelaguiar/1184369 to your computer and use it in GitHub Desktop.
JQuery AJAX Request
var data = $(this).serialize();
$.ajax({
type: 'POST',
url: 'URLHERE',
data: data,
success: function(response) {
$('#result').html(response);
},
complete: function() {
// Complete
},
error: function() {
// Error
}
});
return false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment