I have a group of inputs and I want to get the value of each one in array form or in any way that you will suggest. I am not very good at arrays.
$(elemnt).each(
var values = []; $('.spocNames').each(function(){ values.push({ name: this.name, value: this.value }); }); //use values after the loop console.log(values);