Last active
December 29, 2015 06:59
-
-
Save supercleanse/7632704 to your computer and use it in GitHub Desktop.
Intercept submission and serialize form data into an object.
This file contains hidden or 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
$( "form" ).on( "submit", function(e) { | |
e.preventDefault(); | |
var formdata = $(this).serializeArray(); | |
// do something cool here | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment