In a table, I show S.No , Name , Amount, Payable Amount, Balance Amount dynamically.
So I need a calculation to show balance amount by subtracting payable amount with amount for all textboxes in onblur dynamically. Here is my code. But it does for only the first row, and how to do rest of all.
function showbal()
{
document.getElementById('balance').value = document.getElementById('amount').value - document.getElementById('payable_amount').value
}