Hello,
I start with a table with one row where I can add the name and the age of a member. With jquery I can add/remove rows so that I get something like this...
<tr>
<td><input type="text" class="text" name="name[]" /></td>
<td><input type="text" class="text" name="age[]" /></td>
</tr>
<tr>
<td><input type="text" class="text" name="name[]" /></td>
<td><input type="text" class="text" name="age[]" /></td>
</tr>
...
Adding and removing rows from my table is no problem. I want to execute some javascript when I change the value of the field name. Something like this $("input[name=bedrijf[]]").change(). But offcourse it 's not working correct because of the array of fields with the same name.
Second problem will be. After I changed the value from name in the first row, it executes javascripts and needs to input a value in the 'age' field of the first row. When I change the name in the second row...
Anyone how you have to deal with the name[] problem?
thank you.