<span>
<span class="itogo" value="120">120 руб<input type="checkbox" /></span>
<span class="itogo" value="123">123 руб<input type="checkbox" /></span>
<span class="itogo" value="23">23 руб<input type="checkbox" /></span>
<span class="itogo" value="34">34 руб<input type="checkbox" /></span>
<span class="itogo" value="45">45 руб<input type="checkbox" /></span>
<span class="itogo" value="56">56 руб<input type="checkbox" /></span>
<span class="itogo" value="65">65 руб<input type="checkbox" /></span>
<span class="itogo" value="76">76 руб<input type="checkbox" /></span>
<span class="itogo" value="57">57 руб<input type="checkbox" /></span>
</span>
<div><span id="summa">0</span></div>
<script type="text/javascript">
function summ(){
var summ = document.getElementByid("summ");
var total = 0;
$('.itogo').each(function() {
total += parseInt($(this).attr('value'));
});
summ.innerhtml = total;
}
</script>
помогите разобраться