I am having a grid view
as follows
Quantity Description Rate Total
1 --- 10 10
2 --- 20 40
Label outside the `gridview`
I have written a javascript to display total now I would like to display the total like 10+40
and should display as 50
like that I will have some other ways what I need is I would like to display the total sum on Blur
event of quantity
textbox.
My code for displaying amount onblur
event is as follows
<script type="text/javascript">
function multiplication(txtQuantity, txtRate, txtAmount) {
var weight = document.getElementById(txtQuantity).value;
var rate = document.getElementById(txtRate).value;
document.getElementById(txtAmount).value = weight * rate;
}
</script>
In this script I would like to include the total