Если быть точным то код выглядит вот так:
<div id="allEntries">
<div class="entries">
<input type="text" value="500" />
</div>
<div class="entries">
<input type="text" value="500" />
</div>
<div class="entries">
<input type="text" value="500" />
</div>
<div class="entries">
<input type="text" value="500" />
</div>
<div class="entries">
<input type="text" value="500" />
</div>
<div class="entries">
<input type="text" value="500" />
</div>
</div>
<div id="result"></div>
<script>
window.addEventListener('load', loadContent);
function loadContent() {
jQuery(document).ready(function($){
var len = allEntries.children.length, summa = 2000;
while (len--) summa += +allEntries.children[len].value;
result.innerHTML = summa;
});
}
</script>