Skip to content Skip to sidebar Skip to footer

Calculate Sum Of Textboxes Inside Nested Grid

I have two nested grids in a GridView. Both nested grids have different number of controls (TextBoxes). I want to calculate sum of nested grid textboxes and put in a relevant textb

Solution 1:

var total = 0;

$("input[id^='gvSPActivities']", "#gvSPActivities").each(function() {
    total = total+this.value;
});

$(someInputElement).val(total);

Post a Comment for "Calculate Sum Of Textboxes Inside Nested Grid"