Forum Moderators: open
<form name="income" action="#">
<table style="width: 500px;">
<tr style="background-color: #000;"><td colspan="3">Income</td></tr>
<tr><td style="background: gray;"> </td><td>Lots</td><td style="background: lightyellow;"><input type="text" name="numbers[]" /></td></tr>
<tr><td style="background: gray;"> </td><td>Pips Per Day</td><td style="background: lightyellow;"><input type="text" name="numbers[]" /></td></tr>
<tr><td style="background: gray;"> </td><td>Days Per Week</td><td style="background: lightyellow;"><input type="text" name="numbers[]" onblur="calculate('income', document.forms('income').numbers[]);" /></td></tr>
<tr><td style="background: gray;"> </td><td>Pips Per Month</td><td style="background: ;"></td></tr>
<tr><td style="background: gray;"> </td><td style="background: limegreen;">$ Profit Per Month</td><td style="background: limegreen;"></td></tr>
</table>
</form> so is it actually OK now to use the same 'name' attribute in your HTML and expect JavaScript parse out the fact that this is an array name and it's value should be automatically incremented?