рони,
Так тоже не работает
<div >
<input type="text" class="entries" value="500" />
<input type="text" class="entries" value="700" />
<input type="text" class="entries" value="500" />
<input type="text" class="entries" value="900" />
<input type="text" class="entries" value="600" />
<input type="text" class="entries" value="500" />
</div>
<div id="result"></div>
<script>
window.addEventListener('load', loadContent);
function loadContent() {
jQuery(document).ready(function($){
var des = document.getElementsByClassName('entries');
var len = des, summa = 2000;
while (len--) summa += +des[len].value;
result.innerHTML = summa;
});
}
</script>