ChatServer/pages/js/utils.js

14 lines
281 B
JavaScript
Raw Normal View History

2016-07-28 07:23:37 +00:00
/**
* Created by Norbi on 2016-07-27.
*/
function getFormData($form) {
var unindexed_array = $form.serializeArray();
var indexed_array = {};
$.map(unindexed_array, function (n, i) {
indexed_array[n['name']] = n['value'];
});
return indexed_array;
}