Translations:AutoSum numerical text grid/5/da

From Catglobe Wiki
Revision as of 08:55, 3 August 2017 by Phamhuuphucgopenid (talk | contribs) (Created page with "$("input:text").each( function(i) { if ($(this).attr("name").indexOf("QUESTION.") == 0) { tmpval = $(this).val(); if(tmpv...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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);

}