title: Get the values of all inputs with same class as an array
body: <p>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.</p>
  
  <pre><code>$(elemnt).each(function(index, element) {
      $('#spc-name').val($(".spocName").val());
      alert($(".spocName").val());
  });
  </code></pre>
  
  <p>the above line of code alert right thing for me but for a single input only but I have multiple inputs with <code>class="spocName"</code> so I want to get values of all and so that I could then save each in DB table in seperate rows.</p>