none
Jquery function for gridview rows... RRS feed

  • Question

  • Hi,

    I have a gridview, and want to sum the values of all columns in one row through jquery...

    Here is my script, but it is working for the first row only, not all....

      function cal() {
                $("#GV_Exam tr:has(td)").focusout(function () {
                    var values = parseInt($('#SubOM1').val(), Number) + parseInt($('#SubOM2').val(), Number) + parseInt($('#SubOM3').val(), Number)
                    $('#txtRemarks').val(values);
                });

    Plz help....

    • Moved by Bob Shen Thursday, March 7, 2013 6:38 AM
    Wednesday, March 6, 2013 7:05 AM

All replies