Last active
August 29, 2015 14:14
-
-
Save davidcroda/126a45ef6c858231cad3 to your computer and use it in GitHub Desktop.
ajax submit form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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