Changes between Version 51 and Version 52 of Catalogue
- Timestamp:
- Jun 27, 2012 12:29:45 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Catalogue
v51 v52 24 24 var formId = 'catalogue'; 25 25 var form = document.getElementById(formId); 26 var totalAmount = 0; 26 27 for(var i = 0; i < form.length; i++) { 27 28 var el = form.elements[i]; 28 alert(el);29 totalAmount += getPrice(el) * parseInt(el.value); 29 30 } 31 alert(totalAmount); 30 32 } 31 33