Skip to content

Instantly share code, notes, and snippets.

@eddievlagea
Created October 14, 2013 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eddievlagea/6974554 to your computer and use it in GitHub Desktop.
Save eddievlagea/6974554 to your computer and use it in GitHub Desktop.
post
$('#edit_step_1').submit(function() {
var data = $(this).serialize();
$.ajax({
method: "post",
url: $(this).attr('action'),
data: data,
dataType: "JSON"
}).done(function(data){
console.log(data);
});
return false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment