Guest User

Untitled

a guest
Jul 17th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. var cellAmount = row.insertCell(10);
  2. var spanTag = document.createElement("span");
  3. if(vTableName == 'mySampleTableRadio')
  4. {
  5. spanTag.id = "lblAmount" + iteration;
  6. spanTag.name = "lblAmount" + iteration;
  7. }
  8. else if(vTableName == 'LastConsRadio')
  9. {
  10. spanTag.id = "lblLastInOut" + iteration;
  11. spanTag.name = "lblLastInOut" + iteration;
  12. }
  13. vGrade = document.getElementById("txtPersonGrade").value;
  14. if(vRadioID != "")
  15. spanTag.innerHTML = frmAdmission.GetAmountByTest(vRadioID,vGrade).value;
  16. cellAmount.appendChild(spanTag); //the value that shoul be placed in labelAmount i get it using GetAmountByTest() function
  17.  
  18. // to add the items and put them in a label fees Im doing the follow :
  19. var child;
  20. var TotalFees=0;
  21. var vRowCount=document.getElementById("RowCountDoneRadio").value;
  22. for(var j=0; j<vRowCount; j++)
  23. {
  24. child=document.getElementById("lblAmount"+j).innerHTML;
  25. totalFees +=parseInt(child);
  26. document.getElementById("fees").innerHTML=totalFees;//label to contain the sum
  27. }
Add Comment
Please, Sign In to add comment