Changes between Version 51 and Version 52 of Catalogue


Ignore:
Timestamp:
Jun 27, 2012 12:29:45 AM (12 years ago)
Author:
tolix
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Catalogue

    v51 v52  
    2424    var formId = 'catalogue';
    2525    var form = document.getElementById(formId);
     26    var totalAmount = 0;
    2627    for(var i = 0; i < form.length; i++) {
    2728      var el = form.elements[i];
    28       alert(el);
     29      totalAmount += getPrice(el) * parseInt(el.value);
    2930    }
     31    alert(totalAmount);
    3032  }
    3133