#See names and values of form
var str = {};
$("form").serializeArray().forEach(function(item){
str[item.name] = item.value;
});
console.log(str);#See names and values of form
var str = {};
$("form").serializeArray().forEach(function(item){
str[item.name] = item.value;
});
console.log(str);