SyntaxFix
Write A Post
Hire A Developer
Questions
I have included the answer to also give back the object required.
function getFormData(form) { var rawJson = form.serializeArray(); var model = {}; $.map(rawJson, function (n, i) { model[n['name']] = n['value']; }); return model; }