There is a table, very large, with a price list of services.
<table width="100%" border="0" cellspacing="2" cellpadding="2"> <thead> <th>Предмет</th> <th>В наличии</th> <th>Цена</th> <th>Кол-во</th> <th>Общая цена</th> </thead> <tr> <td>ручка гелевая</td> <td>40шт</td> <td id="cena">5</td> <td><input id="colvo" onkeyup="summ()"></td> <td><div id="result"></div></td> </tr> <tr> <td>ручка шариковая</td> <td>40шт</td> <td id="cena">10</td> <td><input id="colvo" onkeyup="summ()"></td> <td><div id="result"></div></td> </tr> </table> How can we calculate the sums of individual lines without declaring a variable for each of them? I repeat: VERY big table.