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.
Thanks!
Update: I would like to have values from test1 in an array, test2 in an array and so on.
<tr class="test1">
<td>
<input type="text" name="test">
<input type="text" name="test">
<input type="text" name="test">
</td>
</tr>
<tr class="test2">
<td>
<input type="text" name="test">
<input type="text" name="test">
<input type="text" name="test">
</td>
</tr>