var values = inputs.map(function () {
var obj = {};
obj[ this.id ] = $(this).val();
return obj;
}).get();
If they are not inputs selector radio, use this.valueinstead $(this).val().
Or, if you just want an object, use .each.
var obj = {};
inputs.each(function () {
obj[ this.id ] = $(this).val();
});
, name, serializeArray.
var values = inputs.serializeArray();