Skip to content

Instantly share code, notes, and snippets.

@davidcroda
Last active August 29, 2015 14:14
ajax submit form
var form = $('form');
form.bind('submit', function(ev) {
$.post(form.attr('action'), form.serialize(), function(data, status) {
console.log(data, status);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment