Translations:AutoSum numerical text grid/5/da
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...")
$("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);
}