Last active
November 22, 2018 13:44
-
-
Save mgrubinger/1a71ad0b769bf908fc0f12151dfd2af2 to your computer and use it in GitHub Desktop.
jQuery Form Data to Array
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
var data = $(this).serializeArray().reduce(function(obj, item) { | |
obj[item.name] = item.value; | |
return obj; | |
}, {}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment