I have a table that is something like this
<table width="60%">
<tbody>
<tr>
<th>Corredor Feed</th>
<th>Nombre</th>
<th>Empressa</th>
<th>Pagina Web</th>
<th>Telefono</th>
<th>Cellular</th>
</tr>
<tr class="row">
<td>[email protected]
<input type="hidden" value="[email protected]" name="email[]"/>
</td>
<td>
<input type="input" value="" class="validate" name="nombre[]"/>
</td>
<td>
<input type="input" value="" name="empressa[]"/>
</td>
<td>
<input type="input" value="" name="paginaWeb[]"/>
</td>
<td>
<input type="input" value="" name="telefono[]"/>
</td>
<td>
<input type="input" value="" name="cellular[]"/>
</td>
</tr>
<tr>
<td align="right" colspan="6">
<input type="submit" value="Enviar" name="submitme"/>
</td>
</tr>
</tbody>
</table>
I am trying to create a multi dimensional array from the values obtained from each row in jQuery I have thought of a script like this
$('.row').each(function (i) {
$(this).find('td').each(function (j) {
/*if (j == 5) {
var x = $(this).find("input").val();
feed.push({
cellular: x
});
}*/
//here I have to create an array that will hold value of each row
});
});
});
But I do not know how to push the values from the input type of each row into a multi dimensional array
JSFIDDLE Thanks in Advance