How can I validate multiple fields in the form where these fields are created dynamically?
Example:
<tr align="right">
<td style="font-size: 11px;"><b>Item 1 - Descontos:</b></td>
<td><input type="text" name="Desconto11" value="30" class="inputs" size="2" placeholder="%"></td>
<td><input type="text" name="Desconto12" value="5" class="inputs" size="2" placeholder="%"></td>
<td><input type="text" name="Desconto13" value="5" class="inputs" size="2" placeholder="%"></td>
<td><input type="text" name="Desconto14" value="" class="inputs" size="2" placeholder="%"></td>
<td><input type="text" name="Desconto15" value="" class="inputs" size="2" placeholder="%"></td>
</tr>
<br>
<tr align="right">
<td style="font-size: 11px;"><b>Item 2 - Descontos:</b></td>
<td><input type="text" name="Desconto21" value="30" class="inputs" size="2" placeholder="%"></td>
<td><input type="text" name="Desconto22" value="5" class="inputs" size="2" placeholder="%"></td>
<td><input type="text" name="Desconto23" value="5" class="inputs" size="2" placeholder="%"></td>
<td><input type="text" name="Desconto24" value="" class="inputs" size="2" placeholder="%"></td>
<td><input type="text" name="Desconto25" value="" class="inputs" size="2" placeholder="%"></td>
</tr>
I put the field Discount1 to Discount5 where X is represented by the number of the item to which it belongs.
Remembering that the item can go from 1 to 999.
Could someone give an example of how to do this?