I have a listview with lists lines of an invoice (Which are editable), each invoice line has a qty and a rate and I want to show the line total on the client show so if the qty or rate is changed the total changes before the postback.
I have applied the below which gives the right result but doesn't work with multiple line items. The qty and rate fields have a class name of decimal and when they leave focus it will update the line total as per below but I need to restrict it to only update the total of the current line which it doesn't but inputs the total value of all lines with the sum of the first entry.
$(".decimal").blur(function() {
$(".total").val($(".qty").val() * $(".rate").val());
});