var params = $("#myform").serializeArray(); var values = {}; for (var item in params) { values[params[item].name] = params[item].value; } alert(JSON.stringify(values));
2022-11-09 13:29:44
var params = $("#myform").serializeArray(); var values = {}; for (var item in params) { values[params[item].name] = params[item].value; } alert(JSON.stringify(values));