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(
To get the values of each element as an array you can use map():
var valueArray = $('.spocName').map(function() {
return this.value;
}).get();
Or in ES6 (note that this is unsupported in IE):
var arr = $('.spocName').map((i, e) => e.value).get();
You can then use this array as required to save to your database - eg. as a parameter in an AJAX request.