title: JQuery get table row values from input and save to array
body: <p>I have a table with input fields inside the td. How can i get the values from the input fields (by button click) and store them into an array (one row) using JQuery ? So there are different rows with different contexts and i would like to process row by row, so i have to identify those rows by class and so on.</p>
  
  <p>Thanks!</p>
  
  <p><strong>Update:</strong> I would like to have values from <code>test1</code> in an array, <code>test2</code> in an array and so on.</p>
  
  <pre><code>&lt;tr class="test1"&gt;
   &lt;td&gt;
        &lt;input type="text" name="test"&gt;
        &lt;input type="text" name="test"&gt;
        &lt;input type="text" name="test"&gt;
   &lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;tr class="test2"&gt;
   &lt;td&gt;
        &lt;input type="text" name="test"&gt;
        &lt;input type="text" name="test"&gt;
        &lt;input type="text" name="test"&gt;
   &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>