I have a simple form with 3 input. I need to enter a quantity in the input 'qtd', and so I need jQuery to multiply the table with the form, and change the 'name'.
Example;
If I enter 3 in the 'qtd' input will appear 3 tables with the following input: 'name1', 'name2', 'name3', 'sex1', 'sex2', 'sex3'.
Does anyone know how I can do this?
<input type='text' class='form_campos' name='qtd'>
<table>
<tr>
<td>
<input type='text' class='form_campos' name='nome1'>
</td>
<td>
<input type='text' class='form_campos' name='sexo1'>
</td>
</tr>
</table>