Translations:AutoSum numerical text grid/5/da

From Catglobe Wiki
Jump to: navigation, search

$("input:text").each(

     function(i)
     {
        if ($(this).attr("name").indexOf("QUESTION.") == 0)
        {
           tmpval = $(this).val();
           if(tmpval != "" && !isNaN(tmpval)) {
              //DEBUGGING ALERT FOR GETTING THE ACTUAL VALUE
              //alert("|" + parseInt(tmpval) + "|");
              tmpnumber += parseInt(tmpval);
           }
        }
     }
  );
  if(UpdateSelfDefinedElement)
     $("#AUTOSUMSELFDEFINED").text("Sum Equals: " + tmpnumber);
  if(AddTotalRowToGrid)
     $("#AUTOSUM").text("Sum Equals: " + tmpnumber);

}