I have a form with some items, and some cells contain the bank code data and account code to receive.
In the same cell, I have 2% with% distinct, inputs
and checkbox
. I need to iterate and get the values of all hidden
that are marked, including the value of the checkboxes
field of this cell. This field is the bank code for generating the ticket.
In other words, you can have more than one account to receive from the same bank. I need after iterating to send each incoming account to your due ticket.
Here is an excerpt from the code:
<form id="frmGrid">
<table>
<tr>
<td>
<input type="checkbox" name="chkboleto" value="119" checked />
<input type="hidden" name="hdn_banco" value="001" />
</td>
<td>
<input type="text" name="name" />
</td>
<td>
<input type="text" name="lastname" />
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="chkboleto" value="120" />
<input type="hidden" name="hdn_banco" value="001" />
</td>
<td>
<input type="text" name="name" />
</td>
<td>
<input type="text" name="lastname" />
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="chkboleto" value="130" checked/>
<input type="hidden" name="hdn_banco" value="100" />
</td>
<td>
<input type="text" name="name"/>
</td>
<td>
<input type="text" name="lastname" />
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="chkboleto" value="140" checked/>
<input type="hidden" name="hdn_banco" value="100" />
</td>
<td>
<input type="text" name="name" />
</td>
<td>
<input type="text" name="lastname" />
</td>
</tr>
</table>