Changes between Version 44 and Version 45 of Catalogue
- Timestamp:
- Jun 26, 2012 11:33:01 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Catalogue
v44 v45 7 7 function recalc(el) { 8 8 var price = parseFloat(el.parentNode.previousSibling.previousSibling.firstChild.nodeValue.replace(/\s/g, '')); 9 alert(price); 10 // el.nextSibling.nodeValue = ' = '; 9 el.nextSibling.nodeValue = ' = ' + str(price * el.value); 11 10 } 12 11 </script> … … 58 57 <tr> 59 58 <td class="store">Базовый тариф, 1 месяц</td> 60 <td class="store" align="center">3 0 0. 0 1руб/мес<sup>1</sup></td>59 <td class="store" align="center">300 руб/мес<sup>1</sup></td> 61 60 <td class="store"> × <input name="monitoring_basic" class="shopping-cart-input" 62 onkeyup="javascript:recalc(this)"></input> </td>61 onkeyup="javascript:recalc(this)"></input> </td> 63 62 </tr> 64 63 <tr>