I have form which is making sum of numbers but I want that middle input to be skipped by jQuery for summing. Please help with this I'm posting code here. It surely must be the input tag because it sends data to PHP. I spent so much time to figure this out, but I can't see the problem.
jQuery
var total;
$("input.amount").keyup(function() {
total = 0;
$(this).parents("table").find("input.amount").each(function() {
total += parseInt($(this).val());
}).end().find("span.total").html(total);
});
HTML
<form class="calc">
Form 1
<br />
<table border="0">
<tr>
<td>
Amount 1
</td>
<td>
<input class="amount" type="text" />
</td>
</tr>
<tr>
<td>
Amount 2
</td>
<td>
<input class="amount" type="text" />
</td>
</tr>
<tr>
<td>
Amount 3
</td>
<td>
<input class="amount" type="text" />
</td>
</tr>
<tr>
<td>
Total Amount
</td>
<td>
<span class="total">0</span>
</td>
</tr>
</table>
</form>