Last active
August 8, 2017 22:56
-
-
Save oviniciusfeitosa/1e1e46965ff168b84841a7ad668a4861 to your computer and use it in GitHub Desktop.
Serialize jQuery Array as 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
| var parameters = {}; | |
| $("#form").serializeArray().map(function(x){parameters[x.name] = x.value;}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment