Use class
instead of id
like,
<td style="width:100px;" class="BundalSize">
@item.Size
</td>
<td>
<input class="Count" type="text" style="width:100px ;height:15px ;margin:1px" />
</td>
<td>
<input class="Pieces" type="text" style="width:100px ;height:15px ;margin:1px" disabled />
</td>
Change your jquery code
like,
$(document).ready(function () {
$('.Count').blur(function() {
var $parent = $(this).closest('tr');// for current row
var count = parseFloat($(this).val()); // use parseInt if integer
var bundalSize = parseFloat($parent.find('.BundalSize').text());
var totalPieces = count*bundalSize;
$parent.find('.Pieces').val(totalPieces);
});
});