showing results for - "a 5b 22default 22 5d serialize 28n 29"
Dario
24 Nov 2017
1var paramObj = {};
2$.each($('#myForm').serializeArray(), function(_, kv) {
3  if (paramObj.hasOwnProperty(kv.name)) {
4    paramObj[kv.name] = $.makeArray(paramObj[kv.name]);
5    paramObj[kv.name].push(kv.value);
6  }
7  else {
8    paramObj[kv.name] = kv.value;
9  }
10});